Rerun Test by REST API

Prerequisite

Get Scriptless Automation Explored Session ID

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

Step 2: Find a manual session that triggered Scriptless Automation & get the Session ID

Note: We haven't supported this feature on normal manual sessions yet. (i.e. sessions that hadn't triggered Scriptless Automation)

sessionID.png

Get The Application Path

Step 1: Access to the Kobiton App Repo: https://portal.kobiton.com/apps

Step 2: Access an App Folder

apppath.png

Note: The app folder must have the same app package name with the application that was installed in the Explored Session.

Step 3: Click on the “Automation Snippet” option

appsnippet.png

Step 4: Get the “App Path”

getpath.png

Trigger REST APIs

Endpoints

Method URL
POST https://api.kobiton.com/v1/revisitPlans/rerun

Authentication

authen.png

Body

body.png

Steps to call from Postman

  1. Install Postman.
  2. Choose the “Authorization” tab.
  3. Choose Request Type of POST.
  4. Enter the URL in the field to the right of POST as shown above.
  5. In the Type field, choose “Basic Auth”.
  6. Enter your Kobiton username in the Username field.
  7. Enter your API Key into the Password field.
  8. Choose the “Body” tab.
  9. Choose “raw” as the Body type.
  10. Enter the JSON as shown above, changing the “manualSessionId” and “appPath” as described above.
  11. Click “Send”.

postman1.png postman2.png

Was this article helpful?
0 out of 0 found this helpful