Contributions
Re: Run a DOS Command and wait till it finishes
Hi The .Net solutionworkes fine in JScript but not under vbscript. In vbscript I can start an application but can not wait till it's finished. The MethodWaitForExit is not available in vbscript. My problem nowIhave existing projects in vbscript and as far as I know I can't mix them. Is there a way that I don't have to convert my existing vbscripts? Thanks.913Views0likes0CommentsRe: Howto export results in error state
Hi everybody I created a solution that works for me. I have written a script which uses the events OnLogError and OnStopTest. It stores an error flag on OnLogError and writes the logs OnStopTest only if this flag is set. I hold this script in one project and useit from all other projects as well. To do this, I had to add the script using Drag&Drop of theMS Exporer. TC is not able to do this. Then I assigned these 2 events in every project.Attached is the script. Best regards Konrad939Views0likes0CommentsRe: Howto debug object not found
Hi Robert I used an evaluation version of TC. In the mean time the license run down and I ordered a real license. I deinstalled TC and installed the new version. Since this time, I never had this error again. The tests run... I will try to make a regression test over the weekend and see how it works.900Views0likes0CommentsRe: Howto debug object not found
Hi Robert I know these two articles. I already had such situations where i had to wait for objects. I could handle this using delays and increase the auto timeout. >> This means the test run is running faster than the application creates the objects you need to work with I don't belief that.It is the main menu, we never close the main menu.In this situation I have no idea why the menu object should not exist.As I described I did this reserch: - I entered a delay of 30s, Autotimeout 10s->theobject was not found - During these 30s I can click to the menu object -> it is available. This is for me the evidence the object exist. - My DataFilling project that runs before uses the main menu object as well. - When I start the project suite without the DataFilling project -> it works - After stopping highlighting the menu object -> it finds the object. Is there a difference between clicking to the object using the mouse and accessing it by Testcomplete? Is there something I should know?900Views0likes0CommentsHowto debug object not found
I have a situation TestComplete stops with the error "Main Menu was not found..." only during the testrun. I have 3 projects called in this order "Login" "DataFilling" "Extras". Starting the projects standalone works fine. But when I call the project within the Project Suite, TestComplete stops at the beginning of the project Extras. It doesn't find the very first step, the main menu, I entered a delay of 30s, within this time I can click to the menu -> it is available. After TestComplete stops, double click to the step which fails and highlighting the selected object, it find and shows the menu. When I disable the Project DataFilling, it works. DataFilling contains several DataDriven Tests. I don't know what's wrong. Has somebody any idea what I can do? Thanks17KViews0likes4CommentsRe: Howto export results in error state
Hi Saurabh I added the event to my real projectsand have seen it slowes down the testexecution dramatically. On closer examination I have seen that OnStopTest will be alsobefired when a test item is over. Thus results the additional load that slows down the test execution. Any other ideas? Best regards Konrad1.9KViews0likes0Comments- 1.9KViews0likes0Comments
Re: Howto export results in error state
I tried it but when I simulate an error, the result is always 100% success. It seems the OnLogError is fired before the error isadded to the log. Sub ExportResult pos1 = aqString.FindLast(Project.FileName,"\") pos2 = aqString.FindLast(Project.FileName,".") name = aqString.SubString(Project.FileName, pos1, pos2-pos1) FileName = "\TestCompleteResults\" + name + "_Results.mht" Log.SaveResultsAs FileName, 2 End Sub Sub GeneralEvents_OnLogError(Sender, LogParams) ExportResult End Sub1.9KViews0likes0CommentsHowto export results in error state
In my project suite I have several projects which are triggered by cruise control in the nightly build and I want to store the results in a *.mht file. 1) Currently I use a script to save the result in a file at the end of the test. But when the test fails, the test run will be stopped and this script will not be called. How can I specify that the results will be exported anyway? 2) Using this method I have to add a script to every project. Is there a way to use one script for the suite that exports the results of ALL projects? Thanks22KViews0likes13Comments