Contributions
Calling all the scripts in a folder from a testitem
I am using the test item framework and have put testitems in folders and subfolders e.g. 'ProductA' and 'ProductB' folders and in the 'ProductA' folder I have a subfolder called 'Tests1_10', with the test items for Tests 1 to 10 in the 'Tests1_10' subfolder. Can I call the 'Tests1_10' subfolder from the 'ProductB' folder directly, or is it the manual process of copying and pasting the subfolder over and fixing all the names? [(as '_1') is added to the copied folder and testitems]. If calling the subfolder is not currently possible, please make it a suggestion on your database, as for doing small amounts of tests the cloning of the subfolder and fixing names is inconvenient, but for large anoumts of tests, I am having to justify the time wasted in fixing all the names back (i.e. getting rid of the '_1'). Thanks.11KViews0likes1CommentSetting variables in COM called from javascript not working
This following peice of javascript works with testcomeplete/testexecute: var te = new ActiveXObject ("TestComplete.TestCompleteApplication.8"); var tei = te.Integration; te.Manager.Runmode = 1; tei.OpenProjectSuite("C:\\Tests\\AJProjectSuite\\AJProjectSuite.pjs"); tei.RunProjectTestItem ("AJ", "Tests_v_1_5"); while (tei.IsRunning()) { WScript.Sleep(100); } te.Quit(); However, when I try to add variables, it does not work -> I get an 'object required' error for line 5 (the documentation states the 'script should be running', but I am unsure what this means, as I want to alter the variables in the project suite before I run the tests which use the variables as part of the login process of my test web site): var te = new ActiveXObject ("TestComplete.TestCompleteApplication.8"); var tei = te.Integration; te.Manager.Runmode = 1; var teproj = tei.GetObjectByName("Project"); var AJtst = teproj.Variables; AJtst.VariableByName ("GlobalUserName") = "AjUser"; AJtst.VariableByName ("GlobalPassword") = "AjPassword"; tei.OpenProjectSuite("C:\\Tests\\AJProjectSuite\\AJProjectSuite.pjs"); tei.RunProjectTestItem ("AJ", "Tests_v_1_5"); while (tei.IsRunning()) { WScript.Sleep(100); } te.Quit(); How do I get this to work? Note: The javascript is being called fromthe followingBat file: @echo off echo calling js file ajay.js pause How do I get variables to be altered before running the project test item? Please help. Thanks.11KViews0likes4CommentsTestExecute issues
Two questions about TestExecute, which I am calling using a bat file. 1) Is there a way for it to save the project on shutdown without showing the message box dialog, but instead just saving the project file automatically? I am getting this dialog at the end of a TestExecute run and so is requiring manual intervention to close this dialog. 2) Silent mode still shows the mht file at the end of the TestExecute run. Is this correct? Can it be stopped? Again, I am manually closing this screen. Thanks.12KViews0likes1Comment- 584Views0likes0Comments