Contributions
Launch TestComplete Control Panel
I am trying to schedule automated test as described here: https://support.smartbear.com/testcomplete/docs/testing-with/running/scheduling.html However, as a TestComplete rookie, I already run my head against the wall in step one: How do I launch the Control Panel? Thank you in advanceSolved1.3KViews0likes1CommentRe: TestComplete closing "sub test steps" when editing a recorded test
Hi Marsha, I use version 12.50.4142. Also, my recording bar spontaneously disappears from time to time and then randomly reappears, sometimes when clicking the right mouse button. Are you familiar with that problem? I use Windows 10. Thanks in advance!1.2KViews0likes1CommentTestComplete closing "sub test steps" when editing a recorded test
Hi TestCompleters, I have a small but really annoying problem when editing a recording. As can be seen from screendump one, I have finished recording my test and all the "sub test steps" are visible as marked by the red circles. Now, when I start editing my test - in this case I set a variable value - the recording "pulls back" the "sub steps" that previously were visible. To my knowledge I did not do carry out any changes to the TestComplete setup and I haven't experienced this problem before. Thank you in advance!1.2KViews0likes3CommentsRe: Capturing, using and updating a test value changing from test to test
Hi Robert, thanks a lot for your reply. While your solution recipe makes perfect sense I find myself having troubles applying your clues so I hope you won't mind me asking you to please elaborate further even though it probably is very back to basis. Screendump 1 is a clip from my test where the project's name value is entered and it's this value I'd like to change from test re-run to re-run - however, this project name is going to be inserted later in the same test (Screendump 2). Then, I've created my variable, ProjectName, immediately after entering the project name value at the very beginning of my test (Screendump 3 and 4), and I'm assigning the variable the value of your code expression (Screendump 5). However: Should the ProjectName variable value be defined by the entire code expression? The "Automation" part too? I reckon that the ProjectName variable should be created and its value assigned at this initial point in the test as the ProjectName variable needs to be inserted further down in the test? To me it doesn't appear logical to set the variable value at the end of the entire recorded test. Thank you very much in advance.2.4KViews0likes0CommentsRe: Capturing, using and updating a test value changing from test to test
Hi again, I hope you'll be able to seethescreenshotsthis time. In screenshot #1I have created anew project andnamed itTESTCONTROL1000 (the name could be whatever combination of letters and numbers). When I finish recording my test and re-run it, itwill failbecause the new project isn't allowed to have the same name as the previous project. I've thereforetried toenter a code expression (see screenshot #2)through whichevery new project created whenever the test is re-run, is named by the date and time of its creation. So far so good, but I need to capture the value of the project name asI needitin the test steps to come. Thus, the project name should be the same throughout the entire test but change whenever the test is re-run. #1 approach I've triedto capture the project name value (the date/time expression) in a variableby opening thecreated project in my appafterrecording and capturing the name valueas a property object/onscreen onject. I thenused the variablewhereevertheprojectvalue should be inserted further on in the test procedure.Unsuccessfully. #2approach As the project name could be whatever my next approach was to create a simple Excel data sheet with a list of test project name values and saved it as a csv file. I created a data sheet variable and used it in my test in the same way as described in #1 approach. Problem arised as the variable value didn't appear to change from the first data sheet value to the secondto the third with eachtest run. Now I've run out of ideas and am beginning to doubtwhetherthis is actuallypossiblein TestComplete - preferably without coding - and Ihope you can offer some advice. Let me know if you need further info or screenshots. Thank you very much in advance.2.4KViews0likes2Comments- 2.5KViews0likes0Comments
Re: Capturing, using and updating a test value changing from test to test
Hi again, I'm not sure if this was what you're asking for but as the test steps illustrate, I establish a new project with the name testcontrol0402. As this name cannot be the same when I re-run the test, I've replaced the project name with a code expression whichnames the new projectafter the date and time of its creation. This date and time expression valueis what I would like to capture in a variable to use further on in the test. When I re-run my test,the new project will have a differentdate/time value which then should captured and use further on in the test. I hope this makes sense & thank you for your help.2.5KViews0likes7CommentsRe: Capturing, using and updating a test value changing from test to test
Hi Marsha, thanks a lot for your reply. I've tried to follow the instructions of this SmartBear tutorial: https://support.smartbear.com/screencasts/testcomplete/set-variable-value-video-in-testcomplete as it appears to be possible to store a text value from an object property and assign the text as a variable value - or? To be honest I'm a TestComplete rookie and haven't got a lot of experience with Object Browser or the Object Spy. It is possible to create a variable with a value grabbed from the Object Browser? Or when should I use the Object Spy to define my variable value? The best regards, Cam2.5KViews0likes1CommentRe: Capturing, using and updating a test value changing from test to test
Hi, thanks for your answer. I've tried toassign the asset IDto avariable value, both bytrying to capturing it as anobject propertyand an onscreen object. Problemhere is that TestComplete doesn't appearto"grasp"/recognise this as a value and thus nothing appears when I'm trying to print this value out to a log. Also - I need to use this value throughout the test but when the test is re-run, a new ID value is going to appear and this value should replace the previous value used (hope this makes sense) - and is that possible if a such variable value is defined as an object property/onscreen object?2.6KViews0likes13Comments