Instrumenting LG webOS apps

To instrument an LG webOS app you have two choices, either have the library automatically injected into the package or manually insert the Suitest instrumentation code into every HTML file of your app. Then create a build and upload it to Suitest.

At this point you should have a working LG webOS device in your Suitest account.


Inject the library automatically

Suitest can automatically inject the instrumentation library into your application package without your interaction. Select Inject the library automatically before uploading the app package under the App details tab.

Inject the library automatically
Inject the library automatically

If the process fails, please follow the manual instrumentation guide.

Please keep in mind that Suitest assumes that the LG webOS package provided is a traditional package, and not a package which simply references to another URL. If this is your case please instrument the URL that is being called instead, using manual instrumentation.

Inserting instrumentation code manually

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 <head> tag.

Inserting Suitest instrumentation library for HTML apps
Inserting Suitest instrumentation library for HTML apps
Instrumentation library in production

When inserting the instrumentation 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.

Uploading package to Suitest

You can upload the package on the configuration page. Suitest will automatically install or update the package on the device as necessary when you try running the app on this device.

If you use Suitest Network API you can also send the package with an API request. Suitest will automatically install or update the package on the device as necessary when you try running the app on this device.