Forum Discussion

mott's avatar
mott
New Contributor
14 years ago

How to run a test (script) in silent mode?

Hello guys,



first of all:

I`m well aware of this link and its content:

http://smartbear.com/support/viewarticle/10998/



But somehow, either I`m doing something completeley wrong or having a false

imagination of a 'silent mode'-run.



What I`m expecting:

TestComplete runs a test without loading either TestComplete nor the affected application.

In the end, the results should be written in a log file or something else.



My situation:

I`ve created a script which does some GUI tests in Microsoft Excel (2007).

I went to the console and ran TestComplete with the following command:



TestComplete.exe "C:\Dokumente und Einstellungen\ott\Eigene Dateien\TestComplete 8 Projects\TestDropDowns\TestDropD

owns.pjs" /r /p:TestDropDowns /u:Unit3 /rt:Test1 /SilentMode /ns



Nonetheless, TestComplete as well as Excel are being started.



Hope somebody may tell me what I`m missing here.





Best regards,

Markus

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    I'm not sure what you're expecting when you're running the TestComplete application at a command line.  Automated tests in TestComplete must use one of the two applications, TestComplete or TestExecute, to execute the automation.  The automated projects are not "compiled" applications that run stand alone, they require the engines within those two tools.  I really don't understand how you would run a test using TestComplete without running either the TestComplete program OR the program being tested.  



    All "SilentMode" does is make sure that, as the automation is running, no prompts or dialogs from the automation tool are displayed.  



    As for Excel, if you are instantiating Excel objects within your automation, especially Excel.Application, this will start an Excel process in Windows.  Again, it's a matter of the object being created requires the process.



    I guess it's a matter of trying to figure out what you are trying to achieve?  Why do you need to run the tests in this manner?  What are you looking at being able to do in this fashion that does not work with TestComplete or Excel running?
  • mott's avatar
    mott
    New Contributor
    Robert, thank you for your reply.

    I guess I`ve misinterpreted the 'silent mode'-option.

    I thought that this line in the help -



    /SilentMode - If this argument is specified, TestComplete works
    in Silent mode, that is, it neither displays dialogs, nor informs you
    about errors or warnings




    - meant that TestComplete is not being displayed (which, as I must state now, makes absolutely no sense ;-) )



    Well, at the end, I have to say that this was a pretty dumb question ;-)

    Thanks for helping me out there.



    Best regards,

    Markus