Contributions
Re: Command line can't find test
Hi Robert, Apologies, looks like I didn't read the help examples correctly. I saw it mentioned pipes | and tried that but got the error. Examples looked like backslashes so I thought I'd try that too. My project has a Script folder and test scripts so how does that correlate to units and routines? Can I assume the unit is the test script and the routine in the function within it? Thanks, Steven.2.3KViews0likes1CommentCommand line can't find test
Can someone help me interpret the TestComplete command line? I'm running this: C:\Users\Steven>testcomplete.exe "C:\Users\Steven\Documents\TestComplete 14 Projects\Demo\Demo.pjs" /run /project:Demo /test:"Script\NextTry" /ExportLog:C:\Users\Steven\TestComplete\Logs\LogDemo0001.html /exit I've attached a screenshot of my project and the error the command line is giving me. Why doesn't testcomplete find the test script when I've go the project suite, project, folder and test named? Thanks in advance, Steven.Solved2.4KViews0likes5Comments- 1.1KViews1like0Comments
Iterate over child tests
I've set up a sequence of tests via View -> Organize Tests. I then added child tests to one test unit. I would like the parent test unit act as a loop controller over its containing child tests. Is this possible? Failing that, is there some way a script can retrieve the sequence of the child tests? Thanks in advance, Steven.Solved1.2KViews0likes2CommentsRe: How to get the script return code
Hello Robert, Thank you for translating the help explanation. I *thought* I had to create Keyword Items then convert then to Script items. I had put code in the Keyword event, converted it to a script then add code, as per this statement "To access handler parameters in script routines, simply call them by name:". Seemed to me to be duplicating and doing what the event was supposed to do. I've now created Script items and it is indeed doing what you demonstrated. Thank you. Steven.2.2KViews0likes0CommentsRe: How to get the script return code
Good morning, I appreciate your efforts to explain things to me but I've decided it's too hard, too obscure and difficult to understand. Quoting text from the help isn't helpful 'cos I've spent hours reading it and trying to follow it and still can't find how to do what I need. It's all very well to read "If the tests are organized into batches" but what does that mean? How do you do that? What is a batch and what goes into it? Help text states "To access handler parameters in script routines, simply call them by name" but if I have the event as a script, I'm duplicating the event code and effectively doing what the event should be doing. Thank you for your time, I'm going to proceed without events and call my own routines.2.3KViews0likes0CommentsRe: How to get the script return code
Hello, thanks for the response but I am not sure it completely answers my query. I have ony just started with TestComplete so please excuse my lack of knowledge. I set up a sequence several scripts and added OnStartTest() and OnStoptTest() methods to each, added the scripts to the Organize Scripts list and ran the project. Results show theOnStartTest() method was executed once when the first script ran and theOnStopTest() was executed after the last script BUT I wanted these methods to fire for each script. Is this possible or am I not understanding how to execute a sequence of tests? I am eventually going to run this sequence via the command line and need to extract each script's result.2.3KViews0likes4CommentsHow to get the script return code
I am executing a sequence of (JavaScript) test scripts and need to trap the return code of each script as it finishes. Is there a project or global variable that contains the current test status/return code? For example, if a Log.Warning or Log.Error statement is executed, the script finishes with a warning/error return code. Is it possible to obtain this return code value and if so, how do you do it?Solved2.3KViews0likes6Comments