Contributions
Window is invisible error after migration to PowerBuilder 2017 R3 built Windows application
I have a Windows Application that was developedwith PowerBuilder 2017 Release 2. I created a number of Data-Driven TestComplete scripts for regression testing. Recently, we upgraded PowerBuilder to PB 2017 Release 3 and rebuilt the application. Pretty much all of the Name Mapping IDs changed. I created a new TestComplete Project and I havere-recorded a few scripts (with the PB2017 R3 application). The Name Mapping shows the new IDs. The newly created test scripts play back fine. Next, I pasted the original Data Driven script into my new project and updated the object IDs in the script to reflect the new name mapping IDs. When I run the Data Driven script, it fails on the first Date/Time edit box with Window is not visible error. I use the Object Spy and it is not locating the Date/Time control. It only identifies the parent screen. But if I go back and play back the recently recorded script, the entry of the date and time in the Date/Time control works fine. One thing that I noticed when comparing the original Data-Driven script (from PB 2017 R2) to the newly recorded script (PB 2017 R3) is that the original script did not specify an object ID for the Date/Time control. Here are the 2 lines of script to illustrate what I mean. Original PB 2017 R2 script to enter Date and Time: Call Aliases.options.wndFNWND3126.MDIClient.wndFNWND3126.pbdw126.Keys(sRptDate + "1115a" + sTab) Newly recordedPB 2017 R3 script to enter Date and Time: Call Aliases.options.wndFNWND3170.MDIClient.wndFNWND3170.pbdw170.PBEDIT170.Keys("020320201015a[Tab]") NOTE: The newly recorded script just sets the Date /time to 02/03/2020 1015 AM without referencing the Data-Driven variables. the key thing I want to point out here is the new script added the PBEDIT170 object ID which according to the Name Mapping is the Date/Time control. With the old script, there was no ID specific to the Date/Time control. For testing purposes, I just put the new script line in my data driven script (without using the data driven variable for the date) simply using a hard-coded value of 02/02/2020 1015 AM instead. Call Aliases.options.wndFNWND3170.MDIClient.wndFNWND3170.pbdw170.PBEDIT170.Keys("020320201015a[Tab]") I figure I can update the data driven script to use the variable once the Date/Time control gets recognized. Here is a screen shop of the Name Mapping showing the Date/Time control. Am I missing something here? I appreciate any assistance that can be provided. Thanks, BillSolved978Views0likes2CommentsTC Desktop - How to make changes to variable for Data Driven Loop input file.
TestComplete 12.60 Desktop. I created a project, recorded a Keyword test and applied a Data Driven Loop to the Keyword Test. I converted the Keyword test to Script [VBscript]. Everything has been working great. I deleted the original Keyword test since I am using the VBscript to execute my test. Now I need to add some columns to my XLS Data Driven input file and I believe I need to update the variable associated with me Data Driven input file. I cannot figure out how to get to the variable definition for the variable associated with the Data Driven input. Help indicates to select the Variables Tab. I do not know where that is. I appreviate any assistance that can be provided.1.4KViews0likes5CommentsInputBox: How to tell if Cancel selected
I am invoking the BuildIn InputBox to get user input from myTestComplete 12.5 Vbscript. The InputBox dialog has 2 buttons: OK and Cancel and I would like a way for the user to abort the script execution. I thought the Cancel button might work, but the dialog behavior seems to be the same no matter which button is clicked. the typed value or default value gets returned.I cannot find documentation indicating how to determine which button was clicked. Does anyone know how to tell if the user clicks Cancel? Thanks1.5KViews0likes4CommentsCan log font be changed?
TestComplete 12.50.4142.7 x86 I would like thelog file to use a true type font so it is easier to read. I changed the TestComplete font setting via Options - Panels - Display to Courier New, but it appears to only change the editor font.I appreciate any information and/or help with this. thanks911Views0likes2CommentsPath to XLS Input file lost after Convert to Script
I am using TestComplete 12.5.4142.7 x86 with a Windows Desktop application on Windows 10. I recorded a simple Keyword Test - launch application, enter user credentials, login, exit application. I selected all of the steps of my Keyword test and used right-click selection Make Loop to create a Data Driven loop with my input XLS containing user credential data. This Keyword test executes fine, however, I need to add some logic to allow conditionally skipping users depending on values in other columns of the XLS so I decided to convert the Keyword test to VbScript.. I selected the Keyword test in the left pane [project explorer], right-clicked and selected Convert to Script [vbscript in my case]. When I attempt to execute the vbscript, I get the following error. The Microsoft Access database engine could not find the object 'opts_users$'. Make sure the object exists and that you spell its name and the path name correctly. NOTE: opts_users is the sheet name in my XLS file. The TestComplete Support folks indicated I must have moved my XLS file. I did not. The Keyword test still executes fine, but the VBscript always fails with this error. I believe that Convert to Script is misinterpreting the path to my XLS. Has anybody else experienced this?Solved1.4KViews0likes3Comments- 989Views0likes0Comments
Data Driven testing: How do I conditionally evaluate XLS value in script?
Hello, I am working on a Data Driven test using an XLS file as my input data. One column in the file indivcates whether or not to use that row's data for testing. The file contains a number of users and their login credentials. Depending on what test scenario I am conducting, some users should be skipped. I am trying to figure out how to evaluate the value found in column [Include_In_Test] in vbscript. If the value is Y, then proceed and use this row, otherwise, skip to the next data row. I appreciate any examples, suggestions, etc. Thanks, Bill1KViews0likes2Comments