Settings.java
-
username (default: admin)
-
password (default: admin)
config.properties
-
defaultIP (default: 192.168.1.168) - camera IP
-
testIP (default: 192.168.1.169) - available IP is used to change camera IP in tests
-
afterTestDelay (default: 7000 ms) - interval between launch of tests
-
defaultTimeout (default: 14000 ms) - test timeout
-
pushServiceUrl (default: https://liquid-verbena-100614.appspot.com/_ah/api/messaging/v1/sendMessage/) - push server url
-
Import project
-
Click "File > Import...";
-
Select "General > Existing Projects into Workspace" and click "Next";
-
Select project folder in "Select root directory" and click "Finish";
-
-
Run tests
- Run all tests: select AllTest in com.onsemi.matrix.api namespace, click right mouse button, click "Run As > JUnit Test"
Note: these tests - IPAddressTest, FirmwareStartFirmwareUpgradeTest, ConfigurationRestoreTest are commented out in AllTest.java because they could be a reason of other tests fail. These tests should be run independently or as part of their groups (Video, Audio and etc).
-
Run one group (like video, audio): select VideoTest in com.onsemi.matrix.api namespace, click right mouse button, click "Run As > JUnit Test"
-
Run one command (like alarmlevel, audiobitrate): select AlarmLevelTest in com.onsemi.matrix.api.tests.audio namespace, click right mouse button, click "Run As > JUnit Test"
-
Run all tests:
-
change working directory on projectPath\bin (example: D:\MatrixAPITests\bin)
-
copy config.properties to projectPath\bin
-
run:
java -cp .;"..\libs\*" org.junit.runner.JUnitCore com.onsemi.matrix.api.AllTest
-
-
Run one group (like video, audio):
-
change working directory on projectPath\bin (example: D:\MatrixAPITests\bin)
-
copy config.properties to projectPath\bin
-
run:
java -cp .;"..\libs\*" org.junit.runner.JUnitCore com.onsemi.matrix.api.VideoTest
-
-
Run one command (like alarmlevel, audiobitrate):
-
change working directory on projectPath\bin (example: D:\MatrixAPITests\bin)
-
copy config.properties to projectPath\bin
-
run:
java -cp .;"..\libs\*" org.junit.runner.JUnitCore com.onsemi.matrix.api.tests.audio.AlarmLevelTest
-