Instrumenting HTML based apps¶
To instrument an HTML based apps for any device insert the Suitest instrumentation code into every HTML file belonging to your application. At this point you should have a working device configured with other HTML platform in your Suitest account.
Inserting instrumentation code¶
Copy and paste the code snippet from the Suitest configuration page into
every HTML file of your application. For best results put it as the
first script element in your HTML file right after the opening
For apps hosted on HTTPS replace
https in the code snippet
When inserting the library you must make sure, that you don't accidentally release the app to production with Suitest code in it. Suitest code is intended for testing and could damage the user experience of your app's users.
Creating an app launcher¶
As part of the instrumentation you need to specify the method of opening the app on the device. Suitest offers the following options:
Create an open app override test that would "click through" to the app (essentially replay your own actions when you open the app), then use open app override and Suitest will play back these actions before it will start testing.
Delegate the app installation and opening to an external service and have Suitest contact the service as necessary. For instance, for Tizen you may like to utilize the Tizen CLI Docker container open sourced by our friends at iflix.
Have a person on stand by to open the app manually as needed during the testing process. Suitest will notify and wait until the app has been opened and then continue testing.