If
you just installed QTP application and you are unable to record any web based
application, then first check with your QTP record and run settings.
Firstly
go to File menu à Click on Record and Run settings à record and run settings dialog box
opens à
you will be given two options as we have discussed in record and run blog.
Click on record on any browser opened à start recording it
This
is regular process we follow to record a script but at the initial stages it
may not record the web applications. First,
check with object spy, if the object repository is detecting the object in the
web browser or not. If object spy recognizes the object properties in web
browser as button or edit box or checkbox, then your QTP is perfectly ready to
record the application. If Object spy disclose the properties of edit boxes as
WinObject and for browser as windows then identify that there is an issue with
recording. Cross check all the settings in QTP
- Now launch the web application using internet explorer.
- Before launching it first go to tools in the Internet explorer
- Click on Manage add on s à manage add on s window opensà check whether it is enabled or disabled. If it disabled then enable it
- Close the Internet explorer and relaunch it using QTP
- Then Check it by recording actions in QTP
IF
it records your actions successfully, there is no problem with recordings. We
can record our actions in Qtp and analyze results for any web based
applications. But if it doesn’t record then go with this solution
- First open the internet explorer
- Go to internet Settings in IE
- There will be an option called Enable Protective mode. Check whether it is enabled or not. It is checked, just uncheck it
- Apply it and click on Ok à restart the application
Now
perform the actions in internet explorer and record them. It will surely record
the actions you can analyze run the test and analyze the results.
This
is just a normal Vb Scripting for searching a word in the google search engine.
systemutil.Run
"www.google.com"
Browser("Google").Page("Google_2").WebEdit("q").Set
"roads untraveled"
Browser("Google").Page("Google_2").WebButton("Google
Search").Click
Browser("Google").Page("roads
untraveled - Google").Sync
Browser("Google").CloseAllTabs
No comments:
Post a Comment