Copied to clipboard

Export Appium Script

Triggering ITA

Before approaching the Appium Script Generation, you need to trigger ITA on a manual session for preparing a script that could be executed on multiple devices. Click to see “How to trigger ITA on Kobiton”

Exporting Appium Script

Important Note: The Appium Script Generation will only be available when the progress of ITA is finished, meaning you are required to remediate any UI remediations (navigation assertions) to ensure the execution runs properly. Click to see “How to remediate UI remediations”

Step 1: Access Kobiton Session List: https://portal.kobiton.com/sessions

Step 2: Access a manual session details & download a project

export-icon.png

State Description
Export Appium script The Appium script is ready to export to your local machine.
The Appium script is not available The Appium script is not ready to export since the ITA is still running or some of executions are encountered with the UI remediations.

Note

If you cannot see the exporting icon on a manual session details, which means that session is not qualified for ITA. In this case, you need to create another session to trigger ITA again.

Executing Appium Script

Prerequisites

Note

  • We recommend to use the JDK 1.8 for better testing experience, any lower JDK versions might lead to an error for running the test (incapable JDK with the project package) and requires you to manually configure the link between IntelliJ and JDK

Trigger a project

Step 1: Open IntelliJ IDEA and open a project

Step 2: On the project directory sidebar, navigate to src/test/java/TestApp

The TestApp.java will be your main test case, including all generated test steps based on a manual session.

Note

  • Access Kobiton (https://portal.kobiton.com) to get your USERNAME and API KEY
  • Then, update KOBITON_USERNAME and KOBITON_API_KEY in Config.java

Step 3: Run your project

Right click on the TestApp.java & select the Run ‘TestApp'

trigger-project.png

Step 4: Your project will be executed (you can view your test process at the bottom of the IDE)

You will see there are 2 devices running parallely at the same time.

parallel.png

Step 6: After the test finished, open the https://portal.kobiton.com/sessions to get your test results.

Constraints

Right now, the feature “Appium Script Generation” in the release 3.6.0 is the beta version, our feature allows users to export the appium script, which is a foundation for Test Engineers to develop their own script.

We know these will make you feel inconvenient and not have a good usage experience, but our team is working hard to free-up these limitations ASAP for providing a better feature for you.

  1. Support only actions: Touch + Scroll + Set_text
  2. Support physical keyboard (for set_text)
  3. Some of our supported features like bypass OTP / bypass System pop-up / Softkey / etc. will not covered on the exported script
  4. Support only Native App

Tips

  • If your sessions were failed by "No Device Matching" you can re-run a script again (since selected devices are not available at a point of time).
  • If you deal with the Timeout issue, you could modify the timeout value of each action to adapt with the current condition.

Feedback

SELECTED

Tip

You can select a specific word, line of text, or one or more paragraphs to comment.

COMMENT

Please give us some feedback !
Thank you!
  • We are listening,
  • we will do our best to fix this soon