We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

msalvador's avatar
msalvador
Frequent Contributor
3 years ago
Solved

Running mobile tests without opening testcomplete GUI

Hi guys,

I perform my mobile tests, and I'd like to run them, without opening testcomplete GUI, any idea? thanks

  • You can use either TestExecute or TestComplete and utilize the commandline calls to run your tests.  See https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html 

    1. Open the command prompt or terminal on your computer.

    2. Navigate to the TestComplete installation directory.

    3. Use the TestComplete.exe file with the appropriate command-line arguments to run your tests. For example, to run a mobile test project, you can use the following command:

      bashCopy code
      TestComplete.exe /run /project:"C:\TestComplete Projects\MyMobileTestProject.pjs" /testedas:"Mobile" /exit

      This command runs the MyMobileTestProject.pjs project, which is located in the C:\TestComplete Projects directory, as a mobile test and exits TestComplete when the test is finishedhttps://www.mybalancenow.page/

      You can also use other command-line arguments to specify the test item to run, the log file to use, and other settings. For more information about the available command-line arguments, see the TestComplete documentation.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    You can use either TestExecute or TestComplete and utilize the commandline calls to run your tests.  See https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html 

  • Shirley67's avatar
    Shirley67
    New Contributor
    1. Open the command prompt or terminal on your computer.

    2. Navigate to the TestComplete installation directory.

    3. Use the TestComplete.exe file with the appropriate command-line arguments to run your tests. For example, to run a mobile test project, you can use the following command:

      bashCopy code
      TestComplete.exe /run /project:"C:\TestComplete Projects\MyMobileTestProject.pjs" /testedas:"Mobile" /exit

      This command runs the MyMobileTestProject.pjs project, which is located in the C:\TestComplete Projects directory, as a mobile test and exits TestComplete when the test is finishedhttps://www.mybalancenow.page/

      You can also use other command-line arguments to specify the test item to run, the log file to use, and other settings. For more information about the available command-line arguments, see the TestComplete documentation.