ContributionsMost RecentMost LikesSolutionsRe: How to wait for batch file execution to be completed before continuing with rest of keyword tests This works! It takes a parameter and test run resumes only after the batch file has completed it's execution. Sub Run_Build (Build_Version) dim shell, x, y, z x="C:\FolderA\FolderB\" y=x & "App_Name.bat " z=Project.Variables.Build_Version set shell=CreateObject("WScript.Shell") shell.run y + z, 1, true End sub Re: How to wait for batch file execution to be completed before continuing with rest of keyword tests Thanks, however still having issues. I have a keyword test that calls this script and passes it the Build_Version variable. Running this code, will just bring up the command window for a split second and won't continue executing: Sub Run_Build (Build_Version) Sys.OleObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat + Build_Version", 1, True End Sub However this bit of code works correctly: Sub Run_Build (Build_Version) CreateObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat18.00.02", 1, True End Sub But, here I want to replace 18.00.02 with the variable. So when I do this, it does not work ! Sub Run_Build (Build_Version) CreateObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat Build_Version", 1, True End Sub If I have it as + Build_Version, it will say path not found. Re: How to wait for batch file execution to be completed before continuing with rest of keyword tests Thanks Alex! That code works to get my batch file started and waits for its completion before starting other tests. But when it starts, I need to enter something like the version number of the install files I am looking for. I would like to be able to pass that as a parameter as well, so that the batch file will use that and start it's execution without waiting for user to enter the version info. Wondering if there is a way to incorporate both passing a parameter to the called batch file as well as waiting for it to complete in the same line of code? Re: How to wait for batch file execution to be completed before continuing with rest of keyword tests Yes, the batch file reads my input correct and uses it to get the install files that I am looking for. I used ''TestedApps.AppName.Run' command and passed the parameter. This works correctly, but the problem is that while the batch file is still getting all the files, my test suite contines with the rest of the tests. I only want the rest of the tests to start, once the batch file execution is done. The amount of time required for this varies from 5 minutes to maybe 10 or more minutes. That is the reason I need a way to delay the rest of the tests from executing until this is finished first. The batch file also has a return code of 0 if it found all the install files correctly. Re: How to wait for batch file execution to be completed before continuing with rest of keyword tests Not only do I need to wait for the batch file execution to complete, I also need to pass a variable to the bacth file from my calling keyword test. I've tried the following but none of these are working: Sys.OleObject("WScript.Shell").Exec("cmd /c """"C:\Folder1\Folder2\App_Name.bat"" versionInput=Build_Version""") Call Sys.OleObject("WScript.Shell").Run("""C:\Folder1\Folder2\App_Name.bat"", 1, true") Call Sys.OleObject("WScript.Shell").Run("""C:\Folder1\Folder2\App_Name.bat"" versionInput=Build_Version") Appreciate if someone can help. How to wait for batch file execution to be completed before continuing with rest of keyword tests Hi, I have a some keyword tests, but before they are executed, I need to run a batch file that gets the executable for my App. But the batch file execution time varies with different versions of the App, so adding a delay after this is not ideal. The batch file execution is carried out using a VBScript test that makes use of the 'TestedApps.AppName.Run' command. I need to be able to wait for the batch file execution to be completed before I start the next keyword test in my suite. Is there a way for me to add a parameter to this command to achieve this or get a return code (0) from the batch file to signal that it is completed the execution and add this as a check before I run the next test? Thanks, Deepa. SolvedRe: Not able to retrieve selected DropDown value Thanks for your suggestion! I have done the part of configuring TestComplete Project by adding pbdw* to the MSAA's list of accepted windows. I will have to try and see if configuring PB Application makes a difference. Going to talk to development about it. Deepa. Not able to retrieve selected DropDown value Hi, In my windows desktop application, I have many drop downs. TestComplete identifies them as Object Type 'DropDown'. Hence I am not abe to use any methods or properties like wText, Text, SelectedItem, ClickItem,... This Object does not return any methods or properties. From Project > Object Mapping, I tried to add a New Class by selecting this Object from screen, but it cannot be done as it does not belong to ListBox or ComboBox or ListView. I've looked at previous threads and help files and have tried all those suggestions, but am not able to get it done. Any suggestions or help will be much appreciated. These are some settings screens in my application, so the dropdown values are previously selected. When I go to that screen, I just need to read whatever value has been set in that particular drop down field, so as to validate that the rigt value has been set. This is a Power Builder application and I am creating Keyword Tests and scripts using VBScript. Thanks Deepa Re: Checking if an Object contains a specific number The application is written in Power Builder. The results returned on the page are within "Panel". The ObjectType is Panel and the WndClass is pbdw125. The results grid is scrollable and read only. I just need to see if a number (e.g., 1055432), exists within that Panel Object, which contains multiple rows of returned results and columns (Dates, Names, Numbers,....). So it needs to check within that Object to see if the number is present in the Query results as a way of ensuring that my previous actions of adding it worked fine. I am passing this number to the Query page and checking that it exists there. Appreciate all your explanations as I am very new to TestComplete. Thanks! Checking if an Object contains a specific number Hi, On my desktop application, I have a page that returns results of a search. The result pane is considered as 1 Object although there are many rows and columns within it. Everytime I execute the query after some actions, I want to check if the newly generated Number (e.g., Invoice #), is present, within the returned results I saw an article in the documentation that explains how to check if a web page contains a text by using the aqObject.CheckProperty method. However, it does not work correctly for me. Could someone kindly point how to acheive this the correct way? Not sure if using aqObject.CheckProperty method, is the right thing to do. Thanks!