Commit 0318c5e8 authored by Aneta Steimarova's avatar Aneta Steimarova

#691 #929 Update README.md for itests and repair small mistake in test name

parent e78e0739
# <b>How to run intergation tests</b>
## <b>Run selected test</b>
Use This option to run only one selected test on one device.
Available tests are in tablexia/itest/listOfAvailableITests.txt.
<b>Desktop version</b>
Run selected test (from tablexia/desktop/build/libs):
Run selected test (jar file is in tablexia/desktop/build/libs):
```
java -jar Tablexia\ \(feature-gitlab-ci\)-iTest-<VERSION>.jar <TEST_CLASS_NAME>
```
......@@ -14,16 +17,16 @@ Log file will be saved into tablexia/desktop/build/libs/iTest_results.
```
adb shell am start -a android.intent.action.MAIN -n cz.nic.tablexia.itest/cz.nic.tablexia.android.AndroidITestLauncher -e testClassName <TEST_CLASS_NAME>
```
You can run the test from Android Studio using Edit Configurations -> Launch Flags:
You can run the test from Android Studio using Edit Configurations -> Launch Flags:
```
-e testClassName <TEST_CLASS_NAME>
```
and build variant iTest.
Log file will be saved into tablexia/android/build/outputs/apk/iTest_results.
Log file will be saved into external memory of connected device in to a folder iTest_results.
<b>iOS version</b>
For running tests on iOS devices, you need an utility "ideviceinstaller"(http://macappstore.org/ideviceinstaller/)
For running tests on iOS devices, you need a utility "ideviceinstaller"(http://macappstore.org/ideviceinstaller/)
Command ```ideviceinstaller -l``` shows installed applications on your connected iOS device.
For example :
......@@ -37,31 +40,32 @@ For example:
```
idevicedebug run "cz.nic.tablexia.devel" "myParameter"
```
If there are more than one connected iOS device, you need to specify what device you want to use using parameter:
If there are more than one connected iOS devices, you need to specify what device you want to use using parameter:
```
-u "<FORTY_LOCAL_UDID_OF_DEVICE>"
```
<br />
### <b>Run tests using gradle</b>
### <b>Run set of tests using gradle</b>
Put tests, that you want to run in tablexia/itest/iTestBundle.txt (each one to one line)
You can use file listOfAvailableITests.txt to see which tests are available to use or you can use prepared sets in tablexia/itest/testSets.
<b>Desktop version</b>
Put tests, that you want to run in tablexia/itest/iTestBundle.txt (each one to one line)
You can use file listOfAvailableITests.txt to see which tests are able to use.
Run using gradle:
Command for run desktop tests:
```
./gradlew desktop:runITestBundle
```
or commit and push changes to gitlab.
Tests will be run one by one as they are written in tablexia/itest/iTestBundle.txt and log files will be saved into tablexia/desktop/build/libs/iTest_results.
<b>Android version</b>
For running tests, you must have installed apk (iTest version) in your connected Android device.
Put tests, that you want to run in tablexia/itest/iTestBundle.txt (each one to one line)
For running tests one by one on Android device, use script runAndroidITests.sh (from tablexia/itest):
You can run set of tests on one or more connected devices at the same time.
For running tests, you must have set all connected devices to developer mode and have permition to USB debugging.
Command for run android tests:
```
./runAndroidITests.sh
./gradlew runAndroidITestBundle
```
Tests will be run one by one as they are written in tablexia/itest/iTestBundle.txt and log files will be saved into tablexia/android/build/outputs/apk/iTest_results.
Tests will be run one by one as they are written in tablexia/itest/iTestBundle.txt and log files will be saved into tablexia/android/build/outputs/apk/iTest_results-<DEVICENAME>/iTest_results.
......@@ -6,7 +6,7 @@ TestGameShootingRangeEasyNoneStar
TestGameRobberyMediumOneStar
TestGameInTheDarknessMedium
TestGameNightWatchMediumNoneStar
TestGamePursuitThreeStar
TestGamePursuitHardThreeStar
TestGameCrimeSceneHardOneStar
TestGameKidnappingEasyTwoStar
TestGameRunesMediumThreeStar
......
......@@ -6,7 +6,7 @@ TestGameShootingRangeEasyNoneStar
TestGameRobberyMediumOneStar
TestGameInTheDarknessMedium
TestGameNightWatchMediumNoneStar
TestGamePursuitThreeStar
TestGamePursuitHardThreeStar
TestGameCrimeSceneHardOneStar
TestGameKidnappingEasyTwoStar
TestGameRunesMediumThreeStar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment