Organize Appium Sessions Into Test CasesΒΆ

1. Grouping multiple Appium sessions into a single job

When you run an Appium test job, the job may comprise many Appium sessions. For easier reporting and management, it is possible to group all the Appium sessions created as part of a single job.

To do so, use the same value for the robustestJobIdentifier desired capability for Appium sessions belonging to the same job.

All appium sessions with the same value for robustestJobIdentifier, will be grouped together.

2. Naming your Appium sessions

Many automation frameworks are designed in such a way that they create a new Appium session for every test case.

To be able to read such reports easily in RobusTest, user can use the robustestSessionIdentifier. This desired capability is meant to be unique for every Appium session within a job.

3. Retrieving RobusTest Test Session ID

  • Once your Appium tests starts, you can access details about your Appium session using the unique RobusTest Session ID. This ID is created when user tries to start an Appium session on RobusTest.
  • RobusTest Session ID can we accessed in two ways:

    a. By using robustestSessionIdentifier

    To retrieve the RobusTest session ID using the robustestSessionIdentifier, use the following API:

    GET /v3/hub/sessionIdentifer/{robustestSessionIdentifer}

    The advantage of using the robustestSessionIdentifier to retrieve the RobusTest session ID is that even if the Appium session does not get created, the RobusTest session ID will help in accessing the appium log and other details.

    As mentioned earlier, the robustestSessionIdentifier will have to be passed as a desired capability.

    b. By using the Appium Session ID:

    To retrieve the RobusTest session ID using the Appium session ID use the following API:

    GET /v3/hub/session/{Appium Session ID}

    When using this method, you can get the RobusTest Session ID only when you have a valid Appium session ID.