07-04-2013, 02:08 PM
Hello ,
I have following code which i have created using record and play and minor tweaking :
In this code my QTP code randomly stops recognizing elements in lines like:
Does this have something to do with Object Repository or some setting?
Some times it fails, sometimes it pass , sometimes when i click on retry the step .. it goes ahead and pass.
Plz advice , I am amused at this point in QTP
I have following code which i have created using record and play and minor tweaking :
Code:
JavaWindow("StorageManagement").JavaDialog("Add").JavaEdit("JTextArea").Set(fData)
If JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Exist(2000)
Then
JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Click
Else
Reporter.ReportEvent micFail, "Add_Appliance " , "OK button is not visible/appliance can not be added"
ExitTest
End if
' Verify if appliance was added
If JavaWindow("StorageManagement").JavaDialog("JDialog").Exist(30) then
Reporter.ReportEvent micPass, "Add_Appliance " , "Appliance can not be added"
ExitTest
End if
In this code my QTP code randomly stops recognizing elements in lines like:
Code:
JavaWindow("StorageManagement").JavaDialog("JDialog").Exist(30)
OR
JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Exist(2000)
OR
JavaWindow("StorageManagement").JavaDialog("Add").JavaEdit("JTextArea").Set(fData)
Some times it fails, sometimes it pass , sometimes when i click on retry the step .. it goes ahead and pass.
Plz advice , I am amused at this point in QTP