QA SoftVision Team/Mobile/Writing tests: Difference between revisions

Jump to navigation Jump to search
Line 13: Line 13:
* If you already have the sources downloaded update to the lates version by running the command in the sources directory:
* If you already have the sources downloaded update to the lates version by running the command in the sources directory:
  hg pull -u
  hg pull -u
* Make the build by running in '''superuser''':
* Make the build by running in '''superuser''' (sudo su) and make sure the [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup#Update_Android_SDK PATH] variable is updated with the Android SDK location:
  make -f client.mk
  make -f client.mk
* Create a new file named "test" followed by the test name and with the extention "java.in" : for e.g. ''testBookmarks.java.in''
* Create a new file named "test" followed by the test name and with the extention "java.in" : for e.g. ''testBookmarks.java.in''
Line 22: Line 22:
  hg add mobile/android/base/tests/<test_file_complete_name>
  hg add mobile/android/base/tests/<test_file_complete_name>
* Open robocop.ini from mobile/android/base/tests and add after the last Robocop test a new line with the test name between sqare brackets ( "[" and "]")
* Open robocop.ini from mobile/android/base/tests and add after the last Robocop test a new line with the test name between sqare brackets ( "[" and "]")
* Write the test, compile robocop (here is how) and run the test in order to test that it works
* Write the test, compile robocop ([https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Writing_tests#Updating_your_test_directory here is how]) and run the test in order to test that it works
* After the test works follow the instruction to create a patch so the test can be uploaded to a bug and integrated in mozilla.
* After the test works follow the instruction to [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Writing_tests#Creating_a_diff_patch_file create a patch] so the test can be uploaded to a bug and integrated in mozilla.


= Basic structure of the test =  
= Basic structure of the test =  
Confirmed users
905

edits

Navigation menu