QuickTest Professional 10 Course Setup Instructions Important Note: This training runs under the following operating systems: Windows 2000 Professional (with SP4) Windows XP (with SP2 or SP3) Windows Vista, 64-bit Windows Server 2003 EE SP 2 Courses This Document Supports: QuickTest Professional 10 Essentials Using QuickTest Professional 10 Advanced QuickTest Professional 10 Minimum Hardware required for all class machines: CPU: Pentium III; 500 MHZ (Pentium 1V recommended) Memory: 512MB RAM Disk Space: 650MB (free disk space before installation) Additionally, you need 150 MB free space CHECK LIST Please check each item that you have available for this training: Received QuickTest Professional 10 for Windows installation on CD or e-file. Downloaded QTP10-SF-XX.zip (the QuickTest Professional training directory and solution files) Downloaded APPL-MToursInstall-56.zip (web training site installation) Downloaded APPL-MToursPatch-58.zip (a patch for web training installation) HP files to be downloaded may be obtained from the HP Web site at: HP Software Education Services. Other Software Required: Zip utility software like WinZip or PKZip (required to unzip training files.) Browser (Internet Explorer 6.0 or newer) Microsoft Java Virtual Machine software. Windows XP may not have this installed.
Checklist and Training Setup Instructions All installations require Administrative privileges. The Web browser must be installed first, before QuickTest Professional or any training files. Please check each item below when complete: On All Student Machines:AND CONFIGURE THE BROWSER A. INSTALL AND CONFIGURE THE BROWSER 1. Ensure that a Web browser is installed on the training machines before you install QTP. Use Internet Explorer 6.0 Service Pack 2 or higher. Launch IE browser. Enable ActiveX controls and plugins: Select Tools > Internet Options. The Internet Options dialog opens. Select the Security tab, click Custom Level. Under ActiveX controls and plugins, locate Run ActiveX controls and plug-ins Select Enable. 2. Enable Scripting Enable Scripting: From Tools > Internet Options, select the Security tab. Click Custom Level button Scroll down the Settings list Under Scripting ensure that all available options are Enabled 3. Ensure that Microsoft Virtual Machine Java is installed Verify that JIT compiler for virtual machine enabled (requires restart) is checked. From Tools > Internet Options, select the Advanced tab. Scroll down to Microsoft VM. Select JIT compiler for virtual machine enabled (requires restart). HP Software Education 2
B. INSTALL QUICKTEST PROFESSIONAL AND THE TRAINING DIRECTORY ON INSTRUCTOR AND STUDENT MACHINES 1. Install QuickTest Professional 10 according to the installation instructions. Run setup.exe from the CD-ROM. Accept all defaults until installation is complete. Remove the check from the Register Now box. 2. Create the Training Directory. Create a Training directory on the student s computer desktop (or use a previously created Training directory). C:\Documents and Settings\Administrator\Desktop\Training\ 3. Install the Using QuickTest Professional 10 Student Files. Extract the Using QTP 10 student files: Double click the file: QTP10USE-SF-x.zip to open it in your WinZip program. Select Use folder names. Extract the files to the Training folder on the Desktop. This zip file will extract subfolders for the tests, solution, repositories, libraries, data and reusable actions. NOTE: If you extract the files to a different directory than listed above, you will need to update every test to look for its repositories, libraries, data and reusable actions in the new path. 4. Install the Advanced QuickTest Professional 10 Student Files. Extract the Advanced QTP 10 student files: Double click the file: QTP10ADV-SF-x.zip to open it in your WinZip program Select Use folder names. Extract the files to the Training folder on the Desktop. This zip file will extract subfolders for the tests, solution, repositories, libraries, data and reusable actions. NOTE: If you extract the files to a different directory than listed above, you will need to update every test to look for its repositories, libraries, data and reusable actions in the new path. HP Software Education 3
5. Add a DSN Open Control Panel>Administrative Tools>Data Sources (ODBC): Select the System DSN tab. Click Add button. Select the Microsoft Access driver. Select the database by browsing to the Training folder on the Desktop: C:\Documents and Settings\Administrator\Desktop\Training\ QuickTest Professional 10 \Advanced QTP10\Data\TestData.mdb. Name the data source TestData. Click OK to add the data source. C. INSTALL THE WEB SERVER AND THE TRAINING WEB SITE 1. Install the Mercury Tours Training application If you have a newly installed browser, be sure to invoke the browser once before trying to install these files. Unzip and install APPL-MToursInstall-56.zip. WinZip unpacks the files to the default folder C:\Temp\install. Double click on the setup.exe file. Accept the default install folder, C:\Program Files\Mercury Interactive\MercuryTours or click Browse to choose a different folder. Then follow the on screen instructions. 2. Install the patch for the Mercury Tours Training application. Extract the files from the APPL-MToursPatch-58.zip to the following Mercury Tours folder: \MercuryTours\servlets\com\mercurytours\servlet 3. Place shortcuts on the student s desktops Place shortcuts for QuickTest Professional, the Flight Application, Mercury Tours, Start Server and Stop Server on the desktop. 4. Reboot the machine. HP Software Education 4
D. VERIFY THE FUNCTIONALITY OF THE TRAINING WEB SITE 1. Start the Apache Web server. From the Start Menu, choose Mercury Tours. Select Start Server (this will invoke the Apache server). Minimize the window. 2. Set Mercury Tours and register a new user. From the Start Menu, choose Mercury Tours Mercury Tours. Log in with the User Name: admin, Password: mercury and click on the Sign-in button. Under the Functional Testing category, place a checkmark in the checkbox for Data Driven Popup Error. Click on the Submit button. Click on the Register button on the top navigation bar. Scroll to the bottom of the screen and enter the following information: Username: Training Password: Mercury Confirm Password: Mercury Click on the Submit button. You should see a Thank you message. Click on the Login hypertext link. Enter the following information: Username: Training Password: Mercury Validate that the Find a Flight page appears. Click on the SIGN-OFF button. Close the browser. 3. Invoke QuickTest Professional From the Start Menu, choose Programs > QuickTest Professional > QuickTest Professional. This launches the QuickTest Professional program. HP Software Education 5
4. Use default Add-Ins. The Add-in Manager appears. Check the boxes next to ActiveX and Web. Choose Blank Test from the QuickTest Professional window. Click OK. 5. Launch the Mercury WebTours application From the Start Menu, choose Mercury Tours > Mercury Tours. OR Type the following URL into the browser: http://localhost/servlets/com.mercurytours.servlet. WelcomeServlet and press the Enter key. 6. The Mercury Tours Web site comes up without any error messages. The home page of the Mercury Tours Web site should appear. 7. Start recording In the QuickTest Professional window, click on the red Record button on the toolbar. 8. Record Choose Record and run test on any open web browser in the Record and Run Settings window. Enter the following information in the MercTours web page in the browser: User name: Training Password: Mercury Press the Sign-in Button. Press Sign-Off button on top navigation Tool Bar on the webpage Press Home link on left hand side navigation bar 9. Verify recording The login should be recorded by QuickTest Professional. 10. Stop recording Click on the black, square Stop button on the toolbar. 11. Replay test Press play button in QTP to replay test Test should run successfully. 12. Close QTP Don t save the test Close QTP HP Software Education 6
NOTE: ALWAYS use Stop Server (either from the Desktop icon or the Start menu Programs > Mercury Tours) to stop the Apache Web server. Shutting it down by other methods will have unexpected results. E. INSTALL QUALITY CENTER AND SET UP QUALITY CENTER FILES 1. Quality Center must be installed for Lesson 16 of the Using QuickTest Professional course. Use the Quality Center course setup instructions at HP Software Education Services. 2. Create a new Quality Center domain. Open Quality Center Site Administration. Click the Site Projects tab. On the Site Projects tab, click Create Domain. In the Domain Name field, type QTP and click OK. 3. Import the OpenFlight Project in Quality Center. On the Site Projects tab, click the Import Project button. Locate the OpenFlight project in the Training folder: \QuickTest Professional 10\Using QTP10\QCProject Select to import into the QTP domain of Quality Center. 4. Add the Alex_qc user. Select the QTPFlight project, then click the Project Users tab. Add Alex_qc to the project. HP Software Education 7
F. MERCTOURS APPLICATION TROUBLESHOOTING 1. Open the Apache Group file. From the C:\Program Files\ directory, navigate to the Apache folder: C:\Program Files\Mercury Interactive\MercuryTours\Apache Group\Apache 2. Set the JavaScript Open the AdminParams.ini file Set the JavaScript option to off. 3. Save and Close HP Software Education 8