Micro Focus QTP (UFT) Forums
PowerBuilder object not recognised. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: PowerBuilder object not recognised. (/Thread-PowerBuilder-object-not-recognised)



PowerBuilder object not recognised. - nintuqtp - 07-01-2008

Hello All,

I am using QTP for a PowerBuilder application.

Scenario:
---------
For Login n Pwd fields are recognised by QTP as PbEdit which is easy to handle. But in one of the screen, QTP recognises the whole window as PbDataWindow and fields inside the window as SetCellData, while recording. When I try to play back, it says Cells are not available in OR. But in OR only PbDataWindow is captured NOT all individual cells.

So could you plz help me to overcome the hurdle.

My recoding code looks like :

Code:
SystemUtil.Run "C:\ABC\abc.exe","","","open"
PbWindow("w_ctd_frame").PbWindow("w_ct_db_connect").PbEdit("sle_db_pass").SetSecure "486a4fb7cb9437f5a2b82311"
PbWindow("w_ctd_frame").PbWindow("w_ct_db_connect").PbButton("OK").Click
Window("Form Design").WinMenu("Menu").Select "Objects;Forms..."
Window("Form Design").WinMenu("Menu").Select "Forms;Create..."
*****************************
Prob is there in the below line
*****************************
Code:
PbWindow("w_ctd_frame").PbWindow("w_ctd_form_modify").PbDataWindow("dw_form_attrib").SetCellData "form=TP","form","TP"
PbWindow("w_ctd_frame").PbWindow("w_apol_ok").PbButton("OK").Click
Window("Clintrial Design").WinMenu("ContextMenu").Select "Window;Close All"
Window("Clintrial Design").WinMenu("Menu").Select "File;Exit    Alt+F4"