Forum Discussion

jorgesimoes1983's avatar
jorgesimoes1983
Regular Contributor
11 years ago

TestComplete and TestExecute

Hi all! I have the following scenario: i run tests both with TestComplete and TestExecute.



I would like to be able to detect which is running the tests, for instance:



"Script A"



if(testcomplete is running the tests) do action a

else

if(testexecute is running the tests) do action b



Does anyone know how can I accomplish this?



Thanks
  • This code (JScript) will return either TestComplete or TestExecute:



    aqFileSystem.GetFileName(BuiltIn.ParamStr(0)).split('.')[0]



  • karkadil's avatar
    karkadil
    Valued Contributor
    This code (JScript) will return either TestComplete or TestExecute:



    aqFileSystem.GetFileName(BuiltIn.ParamStr(0)).split('.')[0]