While recording in QTP, no script is being generated, neither in the tree view nor in the expert view. What could be the problem?.It is happening sometimes,not all the time(Browser IE)
I appreciate your help!
Thanks,
Mahi
Printable View
While recording in QTP, no script is being generated, neither in the tree view nor in the expert view. What could be the problem?.It is happening sometimes,not all the time(Browser IE)
I appreciate your help!
Thanks,
Mahi
When you start recording your tests, a dialog box appears with the named 'Record & Run Settings'. Check the Web Tab. The radio button Record & Run on any open web browser SHOULD be selected.
I selected samething.It happens only sometimes.
Mahi
QTP will not identify the browsers, which were opened earlier. ie, QTP identifies only those browsers which were opened after opening QTP application.
Hi,
It might be due to cache problem, the pages are not getting download properly. Try to refresh the page.
Hi,
It might be due to Cache problem. Try to refresh or delete cookies and record again.
Thanks
Syed
I guess SMGANESH right!.I tried as he mentioned and working fine.
Thanks for all your suggestions!
Mahi
One of the reasons might be, you have opened many browsers. So, please close the other browers and open the browser only after you open QTP...
Hi Ravikantha,
No matter of number of open browsers if we use descriptive programming (by using browser title and creation time).
Also, we can write some code to close all opened browsers before opening the AUT (Application under test).
Regards,
SM Ganesh
Hi,
Can anyone tell me the code for closing all the browsers before we execute the script...?.
Thanks,
Mahi
[U]Here is the script to close all browsers:[/U]
==========================================
Dim oBrowser
Set oBrowser=Browser("name:=.*","index:=1")
Do while oBrowser.exist
oBrowser.close
Set oBrowser=Browser("name:=.*","index:=1")
Loop
==========================================
Regards,
Ganesh
Hi Ganesh, Thanks for the answer given. But, I feel your first answer ("QTP will not identify the browsers, which were opened earlier. ie, QTP identifies only those browsers which were opened after opening QTP application".) is correct, rather second one. second one is correct only when, we will write the script...It's not related to RECORDING SCRIPT....(As per I know, Descriptive Programming is used, when we do not have application ready but have an idea on requirements...) Correct me if my observation is wrong...
Thank you Ganesh!!
Hi Ravikantha Gowd,
No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.
Regards,
Ganesh
[QUOTE=smganesh;9649]Hi Ravikantha Gowd,
No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.
Regards,
Ganesh[/QUOTE]
Hi
I think therr's a disconnect regarding this. I tried recording a Browser which i had open before the QTP window. It records. BUT it is recording only when a fresh link is opened.
As per the Recording problem is considered.... Just go to [B]Test->Record and Run Settings[/B].... and select the 1st radio button in all the Tabs. This is enough
[QUOTE=smganesh;9649]Thank you Ganesh!!
Hi Ravikantha Gowd,
No matter whether it is recorded script or descriptive programming, QTP will not recognize any browsers that were opened before opening QTP. This is for sure.
Regards,
Ganesh[/QUOTE]
Whether QTP should recognize any open browsers or not, it depends on run settings, which a tester set by himself.So, we can't say that QTP will not recognize any browsers that were opened before opening QTP.Yes, we can instruct QTP to do so, which we generally do in most of the cases knowingly or unknowingly.