WithOne AdventCalendar This is the article on the 15th day.
Today's theme is about test automation with appium.
It is an open source test framework that extends selenium for mobile, and the supported OS is Android, ios, Firefox OS. There are many types of tools for test automation, but these are the two features of appium.
・ Write a test case
Install the following 3 -Java JDK (http://www.oracle.com/technetwork/jp/java/javase/overview/index.html) ・ Android studio (https://developer.android.com/studio/index.html?hl=ja) ・ Aappium (http://appium.io/)
In test automation, we will write the operation parts (clicking a button, closing a window, scrolling, etc.).
The above are just a few of the most commonly used. In addition, it is also possible to automatically acquire evidence while operating automatically with a single click, such as outputting the output of expected value and result value to text. With this, the evidence is easy to understand, and design collapses and bugs can be easily found.
Enable adb for the real or virtual device you want to test
Start appium, write the terminal details before pressing Droid, and press the play button.
Stream the source from android studio
… After this, it will move automatically without any clicks! !!
By automating the test, it is possible to shorten the test period (time), reduce the test man-hours, and prevent human error. After all, it's quite interesting to see the screen of the smartphone moving automatically without doing anything. If you have a chance, please try it! !!
Recommended Posts