we have 10 more actions in our test and we are using exit
action command to come out from the action if any error s
occured.In action 1 if any error occurs control is moving
to second action but if we get error in second action
exitaction is throwing general run error.
Please give a idea to overcome .
Answer Posted / d
General Error occurs whenever QTP intercepts any object
which it fails to identify uniquely because the properties
given by you in the code matches with many of the objects
present at that time.
So, the ExitAction cannot throw such an error and this
error must be thrown by some line code before you are
actually exiting the action.
Please confirm it n then reply in case you find it nt the
case.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to build scripts that access data from external sources?
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
Explain object spy in qtp.
Is it possible to split an action? How?
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
Explain calling sub procedure.
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP
What is quicktest professional window?
Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know
Why is action split used by qtp?
How to associate shared object repository to test in qtp?
Describe the differences between functions and actions in UFT?
can any one say that where we can download the QTP trail version ??????????
Where you are storing your script?