Micro Focus QTP (UFT) Forums
QTP queries-Help Required to run the script - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP queries-Help Required to run the script (/Thread-QTP-queries-Help-Required-to-run-the-script)



QTP queries-Help Required to run the script - SonalBalte - 01-11-2011

Code:
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek", micRightBtn
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").WinMenu("ContextMenu").Select "Add Node"
SwfWindow("Streme : Location Manager").SwfWindow("Streme :  Node").SwfEdit("txtNodeName").Set "we"
SwfWindow("Streme : Location Manager").SwfWindow("Streme :  Node").SwfButton("OK").Click
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we"
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we", micRightBtn
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").WinMenu("ContextMenu").Select "Add Location"
SwfWindow("Streme : Location Manager").SwfWindow("Streme : Location Detail").SwfEdit("txtLocationName").Set "as"
SwfWindow("Streme : Location Manager").SwfWindow("Streme : Location Detail").SwfButton("OK").Click
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we;as"
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we;as", micRightBtn
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").WinMenu("ContextMenu").Select "Add Display"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").SetSelection 0,13
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").Set "c"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtIPAddress").Type micCtrlDwn + "v" + micCtrlUp
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtIPAddress").SetSelection 0,25
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").Set ""
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").Type micCtrlDwn + "z" + micCtrlUp
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").Close
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we;as", micRightBtn
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").WinMenu("ContextMenu").Select "Add Display"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").SetSelection 0,13
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtSynchronizeServer").Set "c"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").Close
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").Select "NicheSoftek;we;as", micRightBtn
SwfWindow("Streme : Location Manager").SwfTreeView("trvHirachy").WinMenu("ContextMenu").Select "Add Display"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtIPAddress").Set "192.168.4.171"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfObject("groupBox3").Click 244,206
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfEdit("txtName").Set "disp1"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfSpin("txtIntervalTime").Set 720
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfTab("tabDisplayDetails").Select "Download Details"
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfRadioButton("Disconnected").Set
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfButton("Save").Click
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").Dialog("Display Properties").WinButton("OK").Click
SwfWindow("Streme : Location Manager").SwfWindow("Player Details:").SwfButton("Close").Click



I am having the following script.
But while running the script I am facing the error whose snapshot is attached here.
Please do guide me on resolving this error.


RE: QTP queries-Help Required to run the script - UFTEnthusiast - 01-11-2011

Hi ,

Add Object to the Object Repository and try to Highlight the application..


This should help

Did u try this ??


Thanks,
UFTEnthusiast