Implementation of iOS automated testing requirements (similar to iOS buttons) and ios buttons
Requirement Analysis:As a demand-driven IT company, IT is not surprising to have any strange demands. Therefore, IT is acceptable to "test third-party applications on a 24-hour basis. Focus on business needs: 1.24 hours of test cycle 2. unattended, Automatic completion 3. Automatic Interface operations (click, slide, input) 4. Compare each page for bug display
Technical analysis:Perform technical analysis based on the above business requirements: 1. Perform automatic interface operations on Andriod, and use the built-in adb command to complete the operation. a pc connects multiple mobile phones and drives the adb command. 2. automatically perform interface operations on the jailbreak mobile phone on iOS, and use the socket driver.
Technical implementation:1. There are no difficulties in the adb driver layer. There are many articles and technical documents on the Internet. 2. iOS is equivalent to implementing a "click-and-click wizard". There are not many out-of-the-box materials and codes. 3. image comparison, which can be implemented using OpenCV.
Code development:As an iOS developer, the development of "iOS push key Genie" has come to my shoulders. It took about seven working days to complete the development of "iOS push key Genie" from the very beginning. It mainly implements global click, slide, input, and function. Use the "TheOS" development framework to hook all functions to be implemented to the system layer, such as Springboard. jailbreak development is really a big pitfall. However, I learned about common APP attack technologies in the continuous development of projects, and made some security measures for projects I will develop in the future. IOS buttons passed the test: iOS7 iOS8.3