Skip to main content

SeeTest Client - Launch

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

:

void Launch (activity, instrument, Stop if run)

Description​

Launch activity (application) or navigate to given URL during runtime.

Parameters​

  • Activity: The application main activity (the application to be launched).
  • OR a URL page.
  • Instrument: Boolean
    • True: Will launch the app in instrumented mode.
    • False: Will launch the app in non instrumented mode.
  • Stop if run - Boolean
    • True: Will kill the application if it is on the background before reluanch  

Usage​

In the following example we will launch the imdb application on the android device

Application is available on the application manager.

Device before:

**

**

Parameters:

**

**

Result:

Now you can click the object spy as the application is instrumented

 **

**

Code Examples​

Java Example

client.launch("com.imdb.mobile/.Home", true, true);

C# Example Expand source

client.Launch("com.imdb.mobile/.Home", true, true);

VBScript Example Expand source

client.Launch "com.imdb.mobile/.Home", true, true

Python Example Expand source

self.client.launch("com.imdb.mobile/.Home", True, True)

Perl Example Expand source

$client->launch("com.imdb.mobile/.Home", 1, 1);