Contributions
Re: Over Night Test Runs
Pavel, Help Says, "It is possible to run tests on locked computers using network suites; locked computers being slave hosts. However, this approach requires that TestComplete is installed on both the locked computer and the computer that will initiate the test run." In my case I want all the systems to be locked state when the tests get triggered. So even if I use network suite, I would end up writing another batch to wakeup the master computer plus the fact that I work on a VPN with the test machines sitting in different geographical locations that I access using RDPnormally. I tried to connect to the machines on VPN using network suite but had no success. Not sure If I missed out on something or the TestComplete's network suit does not support connections to VPN-ed systems. Thankyou2.3KViews0likes0CommentsRe: Real-time status for running test.
To know anything during the test run, I think you ll have to use TestCompleteIndicationand have all the data that you would like to see pushed into theindicator. Please have a look into the help topic "Using TestComplete Indicator" Thankyou2.1KViews0likes0CommentsRe: Submacro to run from failed operation
Try running your test items from command line one by one and get the results - 0,1,2,3. 3 means that the script had failed so all those that have resulted in a 3 you can pick up for the next run. You would have to do a sit of work to understand the batch scripting if you don't know that already.1.3KViews0likes0CommentsRe: Over Night Test Runs
Answering myself: I used a batch script to unlock my machine automatically and rdp into the desired testenvironment.Scheduledto run the batch at the time of running the tests. Scheduled the testcomplete scripts batch on each testenvironment in sync with the rdp connection time. Let me know if there is a better approach. My batch file: (Runs fine of Win XP and Win Server 2003) @ECHO off REM Auto Login into my machine at the time of the nightly run schedule if the system is locked REM For the following line to work logon.exe utility should be present at the location REM logon.exe utility can be downloaded from http://www.softtreetech.com/24x7/archive/51.htm "D:\Automation utilities\logon.exe" -u username -p password REM RDP into TESTENV01 REM For the following line to work TESTENV01.rdp file should be present at the location REM TESTENV01.rdp can be created form mstsc.exe using the necessary setting like the username password etc and then > SaveAs START "" "D:\Automation utilities\TESTENV01.rdp" REM Delay the batch execution for 10 seconds to allow the RDP to connect PING 1.1.1.1 -n 10 >NUL :START REM Keep checking if RDP conection to TESTENV01 is closed by dumping the result of appropriate filter on TASKLIST into a text file and search for the text mstsc in it. TASKLIST /svc /FI "WINDOWTITLE eq TESTENV*" /FI "STATUS eq running" /FO csv >temp.txt TYPE temp.txt | FIND /i "mstsc" ECHO Error Level = %ERRORLEVEL% IF ERRORLEVEL 1 GOTO NOTRUNNING IF ERRORLEVEL 0 GOTO RUNNING :NOTRUNNING ECHO No active RDP connection(s) to TESTENV01 exist GOTO LOCKSYS :RUNNING ECHO Active RDP connection(s) to TESTENV01 exist REM If connection to mstsc is running wait for 3 seconds and resume checking PING 1.1.1.1 -n 10 >NUL ECHO Wait of 3 seconds finished. Starting the check again... GOTO START :LOCKSYS ECHO Deleting the temp files... DEL temp.txt ECHO About to lock the system.... rundll32.exe user32.dll, LockWorkStation2.3KViews0likes0CommentsOver Night Test Runs
I want to be able to run my tests over night in multiple environments. For this purpose I have created a batch file to trigger the test run and scheduled it in eachenvironment. Because I want to run on multipleenvironmentsI chose to RDP into each of themfrom my local machine (test development machine) one after another and get the runs finished.For this I scheduled all the RDP connections into eachenvironment on my local machine. Now as I said inbeginning, the intention is a over night run and I want to come and check the results in the morning. I know that TC does not interact with the GUI if the machine is locked and the suggestions that are given for this are either to RDP into the locked machine or to use virtual machine. What if the the machine that is attempting to RDP itself is locked?Obviously I cant keep my machine unlocked over night plus the companies security policies would not like that. What do I do now? - I want the over-night run with out any human intervention when all the machines are locked. (Overnight run in true sense).24KViews0likes11CommentsRe: record and replay the testscript using remote desktop or virtual machine?
As far as my knowledge goes TC cant record the actions that we do inside an RDP or Virtual Machine with TC installed on the local. I assume for that to happen the browser should load stuff like Sys [__+ Process("mstsc") [__+ Child1 [__+Child2 [ ... [__+ Child n [__+ Sys [__+ Process("IExplore") Sys with in Sys - I am not sure if that ll work.. AQA guys should be able to answer it. Thankyou1.8KViews0likes0CommentsRe: Unable to find Object via winform custom controls
Philip, I believe in this kind of scenarios, the pop up grid is rendered dynamically as a result of some action like editing a particular cell. In such cases I would suggest you to use name mappping to map the second grid with generic properties so that the grid id identification is not connected to aparticularinstance (Record time in your case). This way TC should be able to identify the second grid. Thankyou2.2KViews0likes0Comments