This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)Test Runner enabled with Working & Automated test Cases.
2)Working test cases but need to execute manually are ->testCreateNewUser ->testUpdateForgotPassword ->testChangePassword ->testGetInfoOnAlert ->testUpdateAlertStatus ->testAddCommentsToTheAlert ->testResetAlert 3)Test cases with errors(it could be issue with server) ->testUpdateStatusOfRule ->testGetInvitationListSendToSpecificUser
- Loading branch information
Gutta, RaghavendraX
committed
Mar 9, 2015
1 parent
0965775
commit f71ba41
Showing
6 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
import com.intel.iotkitlib.AlertManagement; | ||
import com.intel.iotkitlib.RequestStatusHandler; | ||
import com.intel.iotkitlib.http.CloudResponse; | ||
import com.intel.iotkitlib.utils.Utilities; | ||
|
||
import org.json.JSONException; | ||
|
||
|
@@ -88,7 +89,7 @@ public void readResponse(CloudResponse response) { | |
serverResponse = true; | ||
} | ||
}); | ||
CloudResponse response = alertManagement.addCommentsToTheAlert(alertId.toString(), "[email protected]", | ||
CloudResponse response = alertManagement.addCommentsToTheAlert(alertId.toString(), Utilities.sharedPreferences.getString("email", ""), | ||
System.currentTimeMillis(), "iotkit_wrapper comment"); | ||
assertEquals(true, response.getStatus()); | ||
waitForServerResponse(alertManagement); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ public void readResponse(CloudResponse response) { | |
serverResponse = true; | ||
} | ||
}); | ||
CloudResponse response = userManagement.createNewUser("intel.aricent.iot@gmail.com", "Password2529"); | ||
CloudResponse response = userManagement.createNewUser("xxxxx@gmail.com", "xxxx"); | ||
assertEquals(true, response.getStatus()); | ||
waitForServerResponse(userManagement); | ||
} | ||
|
@@ -99,7 +99,7 @@ public void readResponse(CloudResponse response) { | |
serverResponse = true; | ||
} | ||
}); | ||
CloudResponse response = userManagement.requestChangePassword("[email protected]"); | ||
CloudResponse response = userManagement.requestChangePassword(Utilities.sharedPreferences.getString("email", "")); | ||
assertEquals(true, response.getStatus()); | ||
waitForServerResponse(userManagement); | ||
} | ||
|
@@ -125,7 +125,8 @@ public void readResponse(CloudResponse response) { | |
serverResponse = true; | ||
} | ||
}); | ||
CloudResponse response = userManagement.changePassword("[email protected]", "Password2529", "Password25292"); | ||
CloudResponse response = userManagement.changePassword(Utilities.sharedPreferences.getString("email", "") | ||
, "Password2529", "Password25292"); | ||
assertEquals(true, response.getStatus()); | ||
waitForServerResponse(userManagement); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters