Forum Discussion

Nawab_Shaikh's avatar
Nawab_Shaikh
Occasional Contributor
9 years ago
Solved

Scheduled Automation

I am planning to schedule my Test Complete Automation:
1. Check if the instance of Test Complete exist.

2. Launch the instance of Test Complete. Perform my Automation checks.

3. Generate an email of the executed Log sent to <email>.

4. Close the Instance of Test Complete.

 

I have been successful in doing point 2 from my list.

Need help in point 1, 3 and 4.

 

I have the automation triggred through Bat file.

 

Regards,

Nawab

 

I have been able to get Independant bat file to run my automation form cmd and one to kill instance of Test Complete.

@echo off
TASKKILL /F /IM "TestComplete.exe"

The issue I am facing is integrating these two independant script.

 

Not sure whats the problem when I have the following sequence of execution steps:

1. Bat to kill Test Complete instance. (I do not have a check to peek in exisiting instance if any).

2. run my Automation.

3. kill the Test Complete instance.

 

Appreciate any help.

 

Regards,

Nawab

  • asmatullah's avatar
    asmatullah
    9 years ago

    Hi ,

     

    This works for me 

     

    taskkill /F /IM "TestComplete.exe"

    "TestComplete exe path" "TestComplete project.pjs" /r /SilentMode /exit

     

3 Replies

  • arikuntha's avatar
    arikuntha
    New Contributor

    Hi,

     

    Just run the attached bat file with following arguments,

     

    1. Project suite path

    2. Project Name

    3. UnitName - Note: In order to execute a main method in the given unit it should be name as 'UniteNamDriver' and you can pass 'n' number of unit names for execution

     

    Hope this would help !

     

    Regards,

    ari

     

  • Nawab_Shaikh's avatar
    Nawab_Shaikh
    Occasional Contributor

    I got the bit a dirty one, would appreciate  couple of refinement:

    Irrespective of an Instance TestComplete managing its instances (launch/kill).

     

    TASKKILL /IM "TestComplete.exe" /F
    "C:\Program Files\SmartBear\TestComplete 9\Bin\TestComplete.exe" "F:\TestComplete 9
    Projects\TestProjSample\TestProjSample.pjs" /r /e /p:TestProject1 /u:Library /rt:FOUR_MON
    tasklist /FI "IMAGENAME eq myapp.exe" 2>NUL | find /I /N "TestComplete.exe">NUL

     

    Regards,

    Nawab

    • asmatullah's avatar
      asmatullah
      Contributor

      Hi ,

       

      This works for me 

       

      taskkill /F /IM "TestComplete.exe"

      "TestComplete exe path" "TestComplete project.pjs" /r /SilentMode /exit