Forum Discussion
- SiaxContributorHi,
Are you running your tests via command line or are you opening the project manually?
Can I suggest you look at the command line /SilentMode attribute which suppresses dialogue boxes appearing.
http://support.smartbear.com/viewarticle/33353/ - anandkumarContributorHi Stuart,
Thanks for ur reply. i run the project through python automator not through command line. as of now i need a solution to handle that popup while closing the project. bcz without closing it none of other projects getting executed. - HKosova
Alumni
Hi Anand,
To avoid confirmation messages when running TestComplete via COM, you can assign the value of 3 to the Manager.RunMode property of TestComplete's COM object. - anandkumarContributorHi Helen,
thanks for ur reply. as of now i'm running the TC scripts through python it would be fine if i get a solution for this way.
let me checkout COM method as well. - HKosova
Alumni
Hi Anand,
I might have misunderstood your situation. Could you please clarify how exactly you launch TestComplete using Python (for example, post your Python script here)? - anandkumarContributorHi
here is the code for python
TCApp = win32com.client.Dispatch(r'TestComplete.TestCompleteApplication')
TCInt = TCApp.Integration
TCInt.RunProjectTestItem("c:\test.pjs;proj;testItem")
while TCInt.IsRunning() == True:
time.sleep(1)
TCApp.Quit()
after running, when the quit operation is performed the popup comes - HKosova
Alumni
Hi Anand,
Your code actually uses the TestComplete COM object - TestComplete.TestCompleteApplication. So, as I wrote before, you need to set the TCApp.Manager.RunMode property to 3 to activate the silent mode. - anandkumarContributorHi Helen
fantastic.
it worked very well. i also found one more method
TCApp.Visible = False
this also works instead of silent mode.
so happy, thank u very much. :) - anandkumarContributorHi Helen,
one more thing similiarly,
1)while opening the script for the first time from a shared drive one popup comes like 'this is from a shared drive do u want to open'
2) also if there is some prob in script log then also one popup comes while opening the script
both the above problems are not solved by the silent mode. it only suppress the popup during closing of script. so how can this be handled. so from beginning of the script opening till TC is closed i dont want any popups related to TC.
thanks in advance. - VLapidusFrequent ContributorYou have created a thread:
http://community.smartbear.com/forum/post.aspx?mode=singleThread&thread=39a48845-a5c6-44c6-8d5e-6ab17b6d1367
Do not create duplicates