08-12-2009, 02:33 PM
Blistering Barnacles...Okay...Here you go,
@Saket - please dont mind, i am going to merge your answers with mine because they seem very much basic verification which definitely needs to be done before we begin.
Check the below before you begin the execution,
1. Have you opened the application ??
2. Was the application opened before QTP or after QTP ? If you are confused and not sure then, Close QTP and the application, Open QTP first and then the Application.
3. Where have you added the objects to the repository ? Is it local or Shared ? If local dont bother at all. if shared, Right click on the action, navigate to Action->Action Properties and then Associate repositories. Verify if the Shared Repository is associated to the action your code is in.
Execution :
1. Start the execution.
2. If you get the same error, Stop the execution. Go to the Object Repository Manager, open your repository, Select the Object and then click on the option Highlight in the application. Does it highlight ?
If yes, Then come back to your script place a breakpoint before the line it errors out.
Start the execution again, and at the breakpoint begin debugging.Check how the application behaviour is at the moment of error.
Let us know if this helped you.
@Saket - please dont mind, i am going to merge your answers with mine because they seem very much basic verification which definitely needs to be done before we begin.
Check the below before you begin the execution,
1. Have you opened the application ??
2. Was the application opened before QTP or after QTP ? If you are confused and not sure then, Close QTP and the application, Open QTP first and then the Application.
3. Where have you added the objects to the repository ? Is it local or Shared ? If local dont bother at all. if shared, Right click on the action, navigate to Action->Action Properties and then Associate repositories. Verify if the Shared Repository is associated to the action your code is in.
Execution :
1. Start the execution.
2. If you get the same error, Stop the execution. Go to the Object Repository Manager, open your repository, Select the Object and then click on the option Highlight in the application. Does it highlight ?
If yes, Then come back to your script place a breakpoint before the line it errors out.
Start the execution again, and at the breakpoint begin debugging.Check how the application behaviour is at the moment of error.
Let us know if this helped you.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.