Prepare for your Next Interview
This is a discussion on Generting script within the QTP forums, part of the Software Testing category; Hi friends I am new to QTP... From the QTP Tools menu i selected object identification...and then i clicked on generte script option. The script file has been generated ...
|
|||
|
Generting script
Hi friends
I am new to QTP... From the QTP Tools menu i selected object identification...and then i clicked on generte script option. The script file has been generated with the file extension.vbs ... can anybody tell me what is the use of generating script. Is there is any possibility to add the generated script some where in the application? If it is so where can we add the generated script? What is the use? Thanks Deepasree |
| Sponsored Links |
|
|||
|
Re: Generting script
Hi Deepa,
One of useful thing in QTP is the scripting.QTP generate visual basic script file whish is portable to use in applications like QTP. Here is the Example of how to delete web cookies using QTP script Browser("Browser").WinToolbar("ToolbarWindow32").Press "&Tools" Browser("Browser").WinMenu("ContextMenu").Select "Tools;Internet Options..." Browser("Browser").Dialog("Internet Options").WinButton("Delete Cookies").Click Browser("Browser").Dialog("Internet Options").Dialog("Delete Cookies").WinButton("OK").Click Browser("Browser").Dialog("Internet Options").WinButton("OK").Click This script code deleted cookies on Web,similar way you can import VBS file created by you or you can modify existing file to use in QTP. It all depends on the need of Application. Cheers, Sridevichitthu |
|
|||
|
Quote:
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to convert the QTP script as LR script... | coolkrish | LoadRunner | 5 | 07-15-2008 09:49 AM |
| script | ronaldrahme | SQL | 2 | 06-30-2008 08:07 AM |
| Conversion of QTP script in to Loadrunner script | coolkrish | LoadRunner | 8 | 06-20-2008 04:22 AM |
| Script which retrieves the current path of the test script | niranjanbiswal | QTP | 1 | 07-18-2007 03:12 PM |