Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
10 years ago
Solved

test execute, reports and saving changes

Hi,
When I execute a project on a VM with Test Execute, I get at the end a dialog box which ask me to save or discar changes.
I understood that it's because a web report has been created.
But I really need everything to be automatic. So I need to save my report on a specific place and to not have the save dialog box.
Anyone could advise ?
Thank you,
Mehdi
  • Hi Mehdi,



    /silentmode suppresses TestExecute message boxes like confirmations.



    To suppress the log opening at the end of the test, open TestExecute options, go to Engines > Log and uncheck Activate after test run.

5 Replies

  • Hi,

    You should run your test in "Silent" mode, IF you are running the test from a command line add the parameter:

    "C:\Work\My Projects\MySuite.pjs" /e /r /SilentMode



    or run this routine :




    Sub SetSilentMode


      Dim rmNormal, rmErrorAndWarning, rmErrorOnly, rmSilent, tcManager


      rmNormal = 0


      rmErrorAndWarning = 1


      rmErrorOnly = 2


      rmSilent = 3


      Set tcManager = Sys.OleObject("TestComplete.TestCompleteApplication").Manager


      tcManager.RunMode = rmSilent


  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Mehdi,



    /silentmode suppresses TestExecute message boxes like confirmations.



    To suppress the log opening at the end of the test, open TestExecute options, go to Engines > Log and uncheck Activate after test run.
  • m_essaid's avatar
    m_essaid
    Valued Contributor
    Hi Sivan,

    Thank you for this post, the /silentmode command is interresting.
    But unfortunately for me it don't make not the report open at the end of the test.
    Still seeking...
    Have a nice day,

    Mehdi
  • m_essaid's avatar
    m_essaid
    Valued Contributor
    Hi Helen,

    Thank you for your message,
    So I see 2 things on this issue :

    1) the "save as" message box dialog at the very end of the test performed by Test Execute. This dialog box don't exists anymore because of the "/silentmode" parameter.

    2) the report .mht itself : i need it just to be stored (for this purpose the
    Log.SaveResultsAs(FileName, lsMHT);
    suits very well). But ! I still have this .mht opened even if I set up Test Complete as you ask me to do.

    :)
  • m_essaid's avatar
    m_essaid
    Valued Contributor
    aaah I was setting up TestComplete, not TestExecute... ok

    Thank you very much Helen