How to Record AJAX in QTP
QuickTest Professional, more commonly referred to as QTP, is a testing tool from HP that allows Web programmers and admins to test their websites and gather information about their scripts by running a variety of tests and tools, including Recording. Recording is an action whereby QTP finds and "copies" the AJAX scripts from a Web page so you can see and copy the code without manually working your way through the website's source code.
Instructions
-
-
1
Open QTP and select Test, then New, to open a new testing page.
-
2
Activate recording by either pressing the "F3" button or clicking Automation followed by Record. A window will appear with several settings options.
-
-
3
Select the Web tab. In the Address field, enter the URL of the Web page that contains the AJAX element you want to record.
-
4
Select Internet Explorer from the Browser drop-down menu. Recording can be performed only with Internet Explorer, and will not work with any other Web browser.
-
5
Click "OK." The settings window will close and Internet Explorer will open and automatically load the URL of the website you entered in the Address field. Once the page loads, click the "X" button in the upper-right corner of the screen to close the browser.
-
6
Click Automation, then Stop. You'll see a list of AJAX scripts in the new testing page you created. You can copy and paste these scripts into a text file, visually inspect them for the element you're curious about or save the recording by clicking File and selecting Save.
-
1