Forum Discussion

iamraj09's avatar
iamraj09
Contributor
10 years ago

Manual and TestComplete measurements are not matching

Hello Everyone,

 

Right now I am doing Performance test on an Application, and I have come across a situation, where I need to open a .exe file using TestComplete ...I was able to do it and I have measured the time for that and it takes around 40 secs to load completely. And when I do it manually it takes around 27 seconds...and I have tested this like 4-5 times ...but it turns out to be the same.

 

This is the code snippet which I am using to launch .exe file.

 

var AppLaunch=Sys.OleObject("WScript.Shell");
AppLaunch.Exec("C:\\Program Files (x86)\\CompanyName\\Software\\Version4.1\\XXX.exe");

 

 

I am performing both the measurements on the same PC. Why there is so much difference in the measurements..? Did anyone of you come across the similar issue..? Please guide me through. 

 

Thanks & Regards

Guru. 

2 Replies

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    Try using shell.Run instead of Exec to see if it produces different results.

     

    Ex:

    wshell = new ActiveXObject('WScript.Shell');
    wshell.run("C:\\Program Files (x86)\\CompanyName\\Software\\Version4.1\\XXX.exe");

     

     

    • iamraj09's avatar
      iamraj09
      Contributor

      Hello

       

      Thanks for the reply ....I have tried the way you said but it is not working ..it is throwing an error ....