Friday, October 30, 2009

Test Management and Planning

Subscribe the QA and Software Testing Newsletter

Click here to continue Reading this post....

SPONSORED LINKS

Testing Types, Methods and Strategies

Subscribe the QA and Software Testing Newsletter

In my various posts in this web log, I wrote about common and important Testing Types, Methods and Strategies. Below are these topics. Although this is not a complete list, but soon it will increase in size as well as in quality.

Here is the list:

Click here to continue Reading this post....

SPONSORED LINKS

Wednesday, October 21, 2009

License Errors in LoadRunner

Subscribe the QA and Software Testing Newsletter

License – Expired: Your LoadRunner license has expired. Please contact customer support to renew it. You have a time-limited license for your LoadRunner application. Some or all of your license features have expired.

Troubleshooting:

  • Check your license information to verify whether your license has expired.
  • Contact customer support to renew your license

License – Renewal: Your LoadRunner licenses are no longer valid. Contact customer support to renew your licenses.
Troubleshooting: Contact customer support to renew your license.

License - Time limit Expired: LoadRunner out of licenses. You have a time-limited license for your LoadRunner application. Some or all of your license features have expired.
Troubleshooting:

  • Check your LoadRunner license to verify which features have expired.
  • Contact customer support to renew your license.

License - Vuser Type Not Licensed: You do not have a license for this Vuser type. Please contact customer support to renew your license.
Troubleshooting:

  • Check your license information to verify whether the license currently installed includes the Vuser types that you are trying to use.
  • Contact customer support to obtain a license for this Vuser type, or to inform them that you have a problem trying to run a licensed Vuser type.

License - WAN Emulation: You need a license to use the WAN Emulation feature. Please contact customer support for licensing information.
Troubleshooting: Contact customer support for WAN Emulation licensing information.

Also See: Important LoadRunner Tutorials

Click here to continue Reading this post....

SPONSORED LINKS

Thursday, October 8, 2009

Replay Tips for Citrix protocol in LoadRunner

Subscribe the QA and Software Testing Newsletter

Today, I’m going add one more tutorial in the LoadRunner section. Below are some useful tips to replay a LoadRunner script for citrix protocol:

  • Set initialization quota: To prevent overloading by multiple Vusers while connecting, set an initialization quota of 4 to 10 Vusers (depending on the capacity of the server) or apply ramp-up initialization using the Scheduler.
  • Enable think time: For best results, do not disable think time in the Run-Time settings. Think time is especially relevant before the ctrx_sync_on_window and ctrx_sync_on_bitmap functions, which require time to stabilize.
  • Set consistency between machines: If you intend to replay the script on another machine, make sure that the following items are consistent between the record and replay machines: Window Size (resolution), Window Colors, System Font and the other Default Options settings for the Citrix client. These settings affect the hash value of bitmaps, and inconsistencies may cause replay to fail. To view the Citrix Client settings, select an item from the Citrix program group and choose Application Set Settings or Custom Connection Settings from the right-click menu. Select the Default Options tab.
  • Increase the numbers of Vusers per machine: Machines running Citrix Vusers may be limited in the number of Vusers that can run, due to the graphic resources available to that machine. To increase the number of Vusers per machine, open a Terminal Server session on the machine. You relate to this Terminal Server as a new injector machine. To refer to the virtual injector machine from the LoadRunner Controller, use the following format: machine_name:1, machine_name:2, ... using either the machine name or its IP address. Note that sessions on a Terminal server use, by default, a 256-color set. If you intend to use a terminal session for load testing, make sure to record on machines with a 256-color set.
  • Changing window names: In some Citrix sessions, the active window name changes while you are recording. If you try to replay the script as is, the Vuser uses the original window name and the replay may fail. Using the recording options, you can specify a naming convention for the windows in which VuGen uses a common prefix or common suffix to identify the window.
  • For example, if the original window's name is "Application 1" where the name changes during application's run to "Application 1", you can instruct VuGen to use the common prefix only, "Application".

    Alternatively, you can modify the window names in the actual script after recording. In the Script view (View > Script view), locate the window name and replace the end of the window name with the wildcard notation, *. For example, ctrx_sync_on_window ("Application*", ACTIVATE, ...);.

Click here to continue Reading this post....

SPONSORED LINKS

Tuesday, October 6, 2009

How to correlate a Winsock script in LoadRunner

Subscribe the QA and Software Testing Newsletter

For LoadRunner 7.51 and later, users can correlate the dynamic value for a Winsock script from VuGen's Tree View. Below is further information on how it can be accomplished.

To use the Tree View for correlation:

  1. Open the script in VuGen.
  2. Choose View > Tree View.
  3. The Tree View will open with the following structure:
    • Function call in the LoadRunner script listed on the left panel.
    • Snapshot of the page in the right panel which can be viewed in either Text View or Binary View

To correlate:

  1. Select the lrs_recieve function on the left panel of the Tree View. The contents of the received buffer are displayed in the right panel.
  2. Select either Text View or Binary View. If you work in Text View, you need to clear the Read-only checkbox in the upper right corner.
  3. Search for the dynamic value that you want to capture.
  4. Highlight that value, right-click, and select Create Parameter. There are two ways to create a parameter:
    • If the offset of the dynamic value is fixed, highlighting that value will set the correct values for Data Range in the Create Parameter window. This creates the function lrs_save_param.
    • If the offset values are not fixed (when the send buffer is parameterized and the response of the server changes in length), look for fixed left and right boundaries to capture the value. Then check Extract Parameter data using boundaries and set the left and right boundaries correctly. This creates function lrs_save_search_string.
  5. VuGen will pop-up with an option for applying the correlation to all occurrences of the value in the script.
    • If you select Yes, VuGen will automatically search for this value in all the lrs_send buffers and replace the values with the parameter name.
    • If you select No, the correlation will be applied to the current location only.

Also See: Other LoadRunner Tutorials

Click here to continue Reading this post....

SPONSORED LINKS

Monday, October 5, 2009

Important LoadRunner Tutorials

Subscribe the QA and Software Testing Newsletter

Below are some the links of eXcellent loadrunner tutorials:

  1. Recording Tips in Load Runner
  2. Recording Problems in LoadRunner
  3. HP Diagnostics and LoadRunner Integration
  4. LoadRunner Automation API
  5. Analysis API in LoadRunner
  6. Vusers in LoadRunner
  7. C Vuser Functions in LoadRunner
  8. LoadRunner VuGen Environment Options
  9. Silent Test Runner
  10. Measuring Transactions
  11. Inserting and Running Tests in LoadRunner or Business Process Monitor
  12. Mercury Performance Testing and Business Availability Center Products
  13. Mercury LoadRunner and Citrix
  14. Citrix ICA Client Integration with LoadRunner
  15. Citrix Load Testing Challenges
  16. How to correlate a Winsock script in LoadRunner
  17. Replay tips for Citrix protocol in LoadRunner
  18. License Errors in LoadRunner
  19. Load Runner - Interview Questions
Note: For further stuff on LoadRunner, please visit our other website: LoadRunnerStuff.com Click here to continue Reading this post....

SPONSORED LINKS

Recording Tips in Load Runner

Subscribe the QA and Software Testing Newsletter

In continuation to my previous post “Recording Problems in Load Runner”, here, I’m going to give you some good and useful tips for doing recording in Load Runner.

  1. Use the mouse and not the keyboard: In LoadRunner, it is preferable to click on an object with the mouse rather then using the keyboard. During recording, use only GUI objects that are within the browser's pane. Do not use any browser icons, controls, the Stop button, or menu items, such as View > Refresh. You may, however, use the Refresh, Home, Back and Forward buttons and the address bar.
  2. Do not record over an existing script : It is best to record into a newly created script—not an existing one.
  3. Avoid context menus: Avoid using context menus during recording. Context menus are menus which pop up when clicking an item in a graphical user interface, such as right-click menus.
  4. Avoid working in a browser while recording: During recording, do not work in any browser window other than the browser windows opened by VuGen.
  5. Wait for downloads: Wait for all downloads to complete before doing any action, such as clicking on a button or filling in a text field.
  6. Wait for pages to load: During recording, it is best to wait for the page to load completely before doing the next step. If you did not wait for all of the pages to load, record the script again.
  7. Navigate to start page: If the last page in an action does not contain the links and buttons that were available at the start of the iteration, then the next iteration will fail. For example, if the first page has a text link Book A Flight, make sure to navigate to the appropriate page at the end of your recording, so that the same link will be visible at the end of the business process.
  8. Use a higher event configuration level: Record the business process again the High Event Configuration level.
  9. Disable socket level recording: In certain cases, the capturing of the socket level messages disrupts the application. For most recordings, socket level data is not required. To prevent the recording of socket level data, disable the option in the recording options. For more information, see the section about recording with Click and Script.
  10. Enable the record rendering-related property values: If the client-side scripts of the application use a lot of styling activities, enable the Record rendering-related property values option before recording the script. For example, enable this option to record additional DOM objects such as offsetTop. Note that enabling this option may decrease the replay speed. To enable record rendering-related property values in Load Runner:
  11. Open the Recording Options. Select Tools > Recording Options and select the GUI Properties:Advanced node

    Also See: Other LoadRunner Tutorials

Click here to continue Reading this post....

SPONSORED LINKS

Recording Problems in LoadRunner

Subscribe the QA and Software Testing Newsletter

Here, I’m going to describe some common recording problems / issues of Load Runner and how to resolve them. Normally, these problems are faced by everyone. I would request you all that leave your comments for the problems you face and how you tackle them.

  1. Firefox is not supported: Only Internet Explorer is supported for Web (Click and Script). To record browser activity on Firefox, use the Web (HTTP/HTML) protocol.
  2. Application behaves differently while being recorded: If your application behaves differently during recording, than it does without recording, you should determine if the recording problem is unique to Web (Click and Script). The effect may be that a Web page will not load, part of the content is missing, a popup window does not open, and so forth. Create a new Web (HTTP/HTML) script and repeat the recording. In the event that the recording is OK in Web (HTTP/HTML), we recommend that you disable socket level recording. The problem may be the result of an event listener. Use trial and error to disable event listeners in the Web Event Configuration Recording Options, and then re-record your session as a Web (Click and Script) user. To disable an event listener:
    • Open the Recording Options. Select Tools > Recording Options and select the GUI Properties:Web Event Configuration node.
    • Click Custom Settings and expand the Web Objects node. Select an object.
    • Select Disabled from the list in the Record column for the relevant Web object. If the recording still does not work, enable the listener you previously disabled, and try disabling another one. Repeat these steps until your recording succeeds.
  3. Dynamic menu navigation was not recorded: A dynamic menu is a menu that dynamically changes depending on where you select it. If the dynamic menu navigation was not recorded, record again using "high" event configuration mode. To set the configuration level to high:
    • Open the Recording Options. Select Tools > Recording Options and select the GUI Properties:Web Event Configuration node.
    • Move the slider to High.
  4. Certain user actions were not recorded: Check if there is a Java applet running inside the browser. If not, record the script with the Web (HTTP/HTML) protocol.
Also See: Other LoadRunner Tutorials Click here to continue Reading this post....

SPONSORED LINKS

Friday, October 2, 2009

Latest QTP Training Material and Tutorials

Subscribe the QA and Software Testing Newsletter

Here are the links of some good QTP tutorials. Beginners can use these tutorials as a training material. Read these and give your feedback for improvement.

  1. Keyword Driven Methodology
  2. Enhancements in QuickTest Professional 10
  3. Object Repository Types in QTP
  4. Testing Business Components using QTP and Quality Center
  5. Running Part of Test Script in QTP
  6. Debugging an Action or a Function in QTP
  7. Handling Run Errors in QTP
  8. Debugging Components and Function Libraries in QTP
  9. Oracle Add-in for QTP
  10. Working with the Java Add-in in QTP
  11. Delphi Add-in in QTP 10
  12. Fine-Tuning the Bitmap Comparison
  13. Jumping to a Step in QuickTest 10.00
  14. Installing Custom Comparer and Registering to
  15. Considerations for Developing Custom Comparers
  16. Developing Bitmap Checkpoint Comparison Algorithm
  17. Comparing Shared Object Repositories
  18. Asset Comparison Tool and Asset Viewer
  19. Resources and Dependencies Model
  20. Test Analysis using QTP 10.00
  21. Manage and Share Testing Assets in Quality Center and QTP 10
  22. Testing ActiveX Controls using QuickTest Professional
  23. HP QuickTest Professional Test Object Schema
  24. Implement Web Add-in Extensibility in QTP
  25. Objects and Actions in QTP
  26. DataTable in QTP
  27. Naming Conventions in QTP
  28. Settings in QTP
  29. QuickTest Tests for Use with LoadRunner or Business Process Monitor
  30. Mercury Performance Testing and Business Availability Center Products
  31. BPT Methodology in QTP and Quality Center
  32. Business Process Testing
  33. QTP, CSTE, ISEB, ISTQB, CSQA Question / Certification Papers
  34. QTP Interview Questions - Part 1
  35. QTP Interview Questions - Part 2
Click here to continue Reading this post....

SPONSORED LINKS

Sunday, August 30, 2009

Selenium - Overview

Subscribe the QA and Software Testing Newsletter

Selenium is a portable software testing framework for web applications. The tests can be written as HTML tables or coded in a number of popular programming languages and can be run directly in most modern web browsers. Selenium can be deployed on Windows, Linux, and Macintosh. Selenium is used for UAT (User Acceptance Test).

 

Selenium consists of

 

- Selenium Core
- Selenium RC
- Selenium Grid
- Selenium on Rails
- Selenium IDE

 

Selenium IDE:

Selenium IDE is a complete Integrated Development Environment (IDE) for Selenium tests (previously known as Selenium Recorder). Firefox extension that allows recording and editing of tests. It allows easier development of tests. It can output Ruby for it’s Ruby based (Application Programming Interface) API.

 

Selenium IDE Features:

- Record and playback
- Intelligent field selection will use IDs, names, or XPath as needed
- Auto complete for all common Selenium commands
- Walk through test cases and test suites.
- Debug and set breakpoints
- Save tests as HTML, Ruby scripts, or other formats
- Support for Selenium user-extensions.js file
- Option to automatically assert the title of every page
- Rollup common commands

 

Selenium IDE License:

Selenium was developed by a team of programmers and testers at Thought Works. Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge. The Selenium Grid provides a hub allowing the running of multiple Selenium tests concurrently  on any number of local or remote systems, thus minimizing test execution time.

Click here to continue Reading this post....

SPONSORED LINKS

Selenium Interview Questions - 1

Subscribe the QA and Software Testing Newsletter

Q1. What is Selenium?

Ans. Selenium is a set of tools that supports rapid development of test automation scripts for web

based applications. Selenium testing tools provides a rich set of testing functions specifically

designed to fulfil needs of testing of a web based application.

 

Q2. What are the main components of Selenium testing tools?
Ans. Selenium IDE, Selenium RC and Selenium Grid

 

Q3. What is Selenium IDE?
Ans.
Selenium IDE is for building Selenium test cases. It operates as a Mozilla Firefox add on and

provides an easy to use interface for developing and running individual test cases or entire test

suites. Selenium-IDE has a recording feature, which will keep account of user actions as they are

performed and store them as a reusable script to play back.

 

Q4. What is the use of context menu in Selenium IDE?
Ans. It allows the user to pick from a list of assertions and verifications for the selected location.

 

Q5. Can tests recorded using Selenium IDE be run in other browsers?
Ans.
Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in

other browsers by using Selenium RC (Selenium Remote Control) and specifying the name of the test

suite in command line.

 

Q6. What are the advantage and features of Selenium IDE?

Ans. 1. Intelligent field selection will use IDs, names, or XPath as needed
2. It is a record & playback tool and the script format can be written in various languages including

C#, Java, PERL, Python, PHP, HTML
3. Auto complete for all common Selenium commands
4. Debug and set breakpoints
5. Option to automatically assert the title of every page
6. Support for Selenium user-extensions.js file

 

Q7. What are the disadvantage of Selenium IDE tool?
Ans.
1. Selenium IDE tool can only be used in Mozilla Firefox browser.
2. It is not playing multiple windows when we record it.

 

Q8. What is Selenium RC (Remote Control)?
Ans.
Selenium RC allows the test automation expert to use a programming language for maximum

flexibility and extensibility in developing test logic. For example, if the application under test returns

a result set and the automated test program needs to run tests on each element in the result set, the

iteration / loop support of programming language’s can be used to iterate through the result set,

calling Selenium commands to run tests on each item.

 

Selenium RC provides an API and library for each of its supported languages. This ability to use

Selenium RC with a high level programming language to develop test cases also allows the automated

testing to be integrated with the project’s automated build environment.

 

Q9. What is Selenium Grid?

Ans. Selenium Grid in the selenium testing suit allows the Selenium RC solution to scale for test suites

that must be run in multiple environments. Selenium Grid can be used to run multiple instances of

Selenium RC on various operating system and browser configurations.

 

Q10. How Selenium Grid works?

Ans. Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC,

which launch the browser and run the test. Thus, it allows for running tests in parallel with the entire

test suite.

 

Q 11. What you say about the flexibility of Selenium test suite?
Ans.
Selenium testing suite is highly flexible. There are multiple ways to add functionality to Selenium

framework to customize test automation. As compared to other test automation tools, it is

Selenium’s strongest characteristic. Selenium Remote Control support for multiple programming and

scripting languages allows the test automation engineer to build any logic they need into their

automated testing and to use a preferred programming or scripting language of one’s choice.

Also, the Selenium testing suite is an open source project where code can be modified and

enhancements can be submitted for contribution.

 

Q12. What test can Selenium do?
Ans.
Selenium is basically used for the functional testing of web based applications. It can be used for

testing in the continuous integration environment. It is also useful for agile testing

 

Q13. What is the cost of Selenium test suite?
Ans.
Selenium test suite a set of open source software tool, it is free of cost.

 

Q14. What browsers are supported by Selenium Remote Control?
Ans.
The test automation expert can use Firefox, IE 7/8, Safari and Opera browsers to run tests in

Selenium Remote Control.

 

Q15. What programming languages can you use in Selenium RC?
Ans.
C#, Java, Perl, PHP, Python, Ruby

 

Q16. What are the advantages and disadvantages of using Selenium as testing tool?
Ans.
Advantages: Free, Simple and powerful DOM (document object model) level testing, can be used

for continuous integration; great fit with Agile projects.

 

Disadvantages: Tricky setup; dreary errors diagnosis; can not test client server applications.

 

Q17. What is difference between QTP and Selenium?
Ans.
Only web applications can be testing using Selenium testing suite. However, QTP can be used for

testing client server applications. Selenium supports following web browsers: Internet Explorer,

Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, QTP is limited to

Internet Explorer on Windows.


QTP uses scripting language implemented on top of VB Script. However, Selenium test suite has the

flexibility to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

 

Q18. What is difference between Borland Silk test and Selenium?
Ans.
Selenium is completely free test automation tool, while Silk Test is not. Only web applications

can be testing using Selenium testing suite. However, Silk Test can be used for testing client server

applications. Selenium supports following web browsers: Internet Explorer, Firefox, Safari, Opera or

Konqueror on Windows, Mac OS X and Linux. However, Silk Test is limited to Internet Explorer and

Firefox.


Silk Test uses 4Test scripting language. However, Selenium test suite has the flexibility to use many

languages like Java, .Net, Perl, PHP, Python, and Ruby.

Click here to continue Reading this post....

SPONSORED LINKS

Saturday, August 29, 2009

Object Repository Types in QTP

Subscribe the QA and Software Testing Newsletter

Test objects can be stored in two types of object repositories—a shared object repository and a local object repository. A shared object repository stores test objects in a file that can be accessed by multiple components (via their application areas) in read-only mode. A local object repository stores objects in a file that is associated with one specific component, so that only that component can access the stored objects.

 

When you plan and create components, you must consider how you want to store the objects in your components. You can store the objects for each component in its corresponding local object repository, or you can store the objects in your components in one or more shared object repositories. By storing objects in shared object repositories and associating these repositories with your components’ application areas, you enable multiple components to use the objects. For each component, you can use a combination of objects from your local and shared object repositories, according to your needs. You can also transfer local objects to a shared object repository, if required. This reduces maintenance and enhances the reusability of your components because it enables you to maintain the objects in a single, shared location instead of multiple locations.

 

If you are new to using QTP, you may want to use local object repositories. In this way, you can record and run components without creating, choosing, or modifying shared object repositories because all objects are automatically saved in a local object repository that can be accessed by its corresponding component. If you modify an object in the local object repository, your changes do not have any effect on any other component.

 

If you are familiar with testing, it is probably most efficient to save objects in a shared object repository. In this way, you can use the same shared object repository for multiple components—if the components include the same objects. Test object information that applies to many components is kept in one central location. When the objects in your application change, you can update them in one location for all the components that use this shared object repository.

 

If an object with the same name and description is located in both the local object repository and in a shared object repository associated with the same component, the component uses the local object definition. If an object with the same name and description is located in more than one shared object repository associated with the same component, the object definition is used from the first occurrence of the object, according to the order in which the shared object repositories are associated with the component.

 

Local objects are saved locally with the component, and can be accessed only from that component. When using a shared object repository, you can use the same object repository for multiple components. You can also use multiple object repositories for each component.

 

When you open and work with an existing component, it always uses the object repositories that are specified in the application area with which the component is associated. Shared object repositories are read-only when accessed from components; you edit them using the Object Repository Manager.

Click here to continue Reading this post....

SPONSORED LINKS

Testing Business Components using QTP and Quality Center

Subscribe the QA and Software Testing Newsletter

Generally, business components are created and modified in Quality Centre by Subject Matter Experts. However, you can use the Business Component Keyword View to create, view, modify, and debug a business component in QTP, if required.

 

In the Keyword View, business components are divided into steps in a modular, keyword-driven, table format. Each step is a row that comprises individual parts that you can easily modify. You create and modify steps by selecting items and operations and entering additional information, as required.

 

Each step in a business component is automatically documented as you complete it. This enables you to view a description of the step in understandable sentences. In addition, if you added a function library to the application area associated with the business component, when you define a step by selecting a user-defined operation (function), the documentation that you added in the function library will be displayed for the step.

 

Before you create or open a business component, you connect QTP to a Quality Centre project, which is where business components and application area resources and settings are stored. Connecting to your Quality Centre project enables QTP to create or open the business component. This also enables the business component to access all of the resources defined in the application area on which the component is based.

 

Important Note: Make sure you have the required Quality Centre permissions before working with business components and application areas.

 

If the application area you select does not yet contain all of the required resources and settings, you can still add steps using the ManualStep function or the Comment option. This enables you to type in manual steps as you would in Quality Centre or in another application, such as Microsoft Excel or Microsoft Word. You can also use comments to add information about a step or to separate sections of your business component. Each manual step and comment appears as a separate row in the Keyword View.

 

If you want to delete a component, you can do so only in Quality Centre, regardless of whether it was created in QTP or in Quality Centre.

 

Also, if needed, you can convert a business component to a scripted component.

Click here to continue Reading this post....

SPONSORED LINKS

Saturday, August 8, 2009

Running Part of Test Script in QTP

Subscribe the QA and Software Testing Newsletter

You can use the Run from Step option to run a selected part of your test. This enables you to check a specific section of your application or to confirm that a certain part of your test runs smoothly.

 

In the Expert View, you can use the Run from Step option to run your test from the selected step until the end of the action. Using Run from Step in this mode ignores any iterations. However, if the action contains nested actions, QTP runs the nested actions for the defined number of iterations of the nested action.

 

In the Keyword View, you can use the Run from Step option to run your test from the selected step until the end of the test (if the selected step is not part of a reusable action, because a reusable action needs to be called from a test, in order for the test to know from where to continue). Using Run from Step in this mode includes all iterations. The first iteration will run from the step you selected until the end of the test; all other iterations will run from the beginning of the test.

 

You can use the Run Current Action option to run a single action in your test. Using Run Current Action ignores any iterations. However, if the action contains nested actions, QTP runs the nested actions for the defined number of iterations.

 

Please note, if you only want to run one iteration of your test, select Run one iteration only from the Run pane in the Test Settings dialog box.

 

If you want to run your test until a specific point within the test (and not to the end of the action or test), you can insert a breakpoint. The test will then run from the selected step or action until the breakpoint.

 

To run an entire action, or run a test or action from a selected step:

 

  1. Make sure your application is in a state matching the action or step you want to run.
  2. Select the action or step where you want to start running the test. Make sure that the step or action you choose is not dependent on previous steps, such as a retrieved value or a parameter defined in a previous step.
  3. Select Automation > Run from Step or Run Current Action, or right-click and select Run from Step. The Run dialog box opens.
  4. In the Run dialog box, choose where to save the run session results, and define any input parameters you want to use.
  5. Click OK. The Run dialog box closes and the run session starts

    By default, when the run session ends, the Test Results window opens. The Test Results summary displays a note indicating that the test was run using the Run from Step or Run Current Action option.

If you cleared the View results when run session ends check box in the Run pane of the Options dialog box, the Test Results window does not open at the end of the run session.

Click here to continue Reading this post....

SPONSORED LINKS

Debugging an Action or a Function in QTP

Subscribe the QA and Software Testing Newsletter

Suppose you create an action or a function that defines variables that will be used in other parts of your test or function library. You can add breakpoints to the action or function to see how the value of the variables changes as the test or function library runs. To see how the test or function library handles the new value, you can also change the value of one of the variables during a breakpoint.

 

This can be done by following below simple steps:

 

Step 1: Create a New Action or Function: Open a test and insert a new action, or open a new function library and create a new function called SetVariables.

 

If you are working in the Expert View, then follow Step 4 directly. If you are working in a function library, continue with Step 2 and Step 3.

 

Step 2: (For Function Libraries Only) Associate the Function Library with a Test: Make sure the function library is in focus. Select File > Associate Library ‘<Function Library Name>’ with ‘<Test Name>’. QuickTest associates the function library with your test.

 

Step 3: (For Function Libraries Only) Add a Call to the Function in Your Test: Add a call to the function by inserting a new step and typing the following in the Expert View: SetVariables.

 

Step 4: Add Breakpoints: Add breakpoints at the appropriate lines.

 

Step 5: Begin Running the Test: Run the test. The test or function library stops at the first breakpoint, before executing that step (line of script).

 

Step 6: Check the Value of the Variables in the Debug Viewer Pane:

Step 7: Check the Value of the Variables at the Next Breakpoint: Click the Run button to continue running the test. The test stops at the next breakpoint.

 

Step 8: Modify the Value of a Variable Using the Variables Tab

Step 9: Modify the Value of a Variable Using the Command Tab

Step 10: Repeat a Command from the Command History

Click here to continue Reading this post....

SPONSORED LINKS

Handling Run Errors in QTP

Subscribe the QA and Software Testing Newsletter

There are two types of Run Error message boxes that can be displayed during a run session in QTP. One is displayed if the problem is a pure VBScript syntax error. When a syntax run error message box is displayed, click OK in the message box and address the error in your step.

 

The other message box can be displayed in a number of situations. It offers information about the error and a number of buttons for dealing with errors encountered:

 

Stop: Stops the run session. The run results are displayed if QTP is configured to show run results after the run.


Retry: QTP attempts to perform the step again. If the step succeeds, the run continues.

 

Skip: QTP skips the step that caused the error, and continues the run from the next step.

 

Debug: QTP suspends the run, enabling you to debug the test and any associated function library that contains a function called by the test. You can perform any of the debugging operations described in this section. After debugging, you can continue the run session from the step where the test or function library stopped, or you can use the step commands to control the remainder of the run session.

 

Help: Opens the QTP troubleshooting Help for the displayed error message. After you review the Help topic, you can select another button in the error message box.

 

The message box also recommends that you consider using Maintenance Mode if you think the error is due to intentional changes in your application and requires that you update multiple steps in your test or objects in your repository.

Click here to continue Reading this post....

SPONSORED LINKS

HP Diagnostics and LoadRunner Integration

Subscribe the QA and Software Testing Newsletter

The HP Diagnostics integration with LoadRunner allows you to monitor and analyze the performance of Java 2 Enterprise Edition (J2EE), .NET-connected, SAP, Oracle, and other complex environments.

Specifying the Diagnostics Server Details: The first time you use LoadRunner to capture J2EE or .NET diagnostics data, you need to identify the machine on which the Diagnostics Server in Commander mode is running, and the port that it is using for communication with LoadRunner. You must update this information if you want to integrate with a different Diagnostics Server in Commander mode, or if you change the port it is using. To update the LoadRunner configuration settings for HP Diagnostics:

1. Select Start > Programs > HP LoadRunner > LoadRunner to open the LoadRunner launcher window.

2. From the LoadRunner launcher window menu, select Configuration > Diagnostics for J2EE/.NET Setup to open the Diagnostics for J2EE/.NET Setup dialog box. Enter the details for the Diagnostics Server in Commander mode.

3. Click Test to verify that you entered the correct information for the Diagnostics Server in Commander mode and that there is connectivity between the Diagnostics Server in Commander mode and LoadRunner. Click OK to complete the configuration process.

Configure LoadRunner Scenarios to use HP Diagnostics

1. Before configuring your scenario for Diagnostics, ensure that the application server that you are monitoring has been started.

2. In the Controller, open the relevant load test scenario (FIle > Open) or create a new scenario (File > New).

3. Select Diagnostics > Configuration to open the Diagnostics Distribution dialog box.

4. Set the percentage of Vusers to participate in the HP Diagnostics (J2EE/.NET Diagnostics) monitoring. The maximum percentage of Vusers for which HP Diagnostics (J2EE/.NET Diagnostics) data can be collected is 100%, unless you have enabled other types of diagnostics. In this case, the percentage of Vuser participation in HP Diagnostics (J2EE/.NET Diagnostics) cannot exceed the maximum of any of the other types of diagnostics that you enabled.

5. In the Online & Offline Diagnostics section of the Diagnostics Distribution dialog box, next to J2EE/.NET Diagnostics, click Configure. The J2EE/.NET Diagnostics Configuration dialog box opens.

6. Select Enable J2EE/.NET Diagnostics

7. In the Select probes list, select the probes to be included in your load test scenario.

8. If the Diagnostics Server (or a Diagnostics Server in Mediator mode in a distributed environment) is located behind a firewall, select There is a firewall between the mediator and the Controller, and enter the name of the MI listener server in the MI listener server box. If there is a firewall between the LoadRunner Controller and the Diagnostics Server involved in a load test, you must configure the Controller and the Diagnostics Server to use the MI Listener to enable the transfer of the offline analysis file.

9. To capture a percentage of server requests which occur outside the context of any Vuser transaction select Monitor server requests.

10. To investigate any issues that you have with the connections between the Diagnostics components, click the Troubleshoot Diagnostics for J2EE/.NET connectivity link. This will open the HP Diagnostics System Health Monitor in a new browser window.

During a LoadRunner load test scenario, you can view HP Diagnostics data for the whole scenario or you can drill down to HP Diagnostics data from a particular transaction. After you have run your scenario, you can use HP LoadRunner Analysis to analyze offline Diagnostics data generated during the scenario.

Also See: Other LoadRunner Tutorials

Click here to continue Reading this post....

SPONSORED LINKS

Friday, August 7, 2009

Debugging Components and Function Libraries in QTP

Subscribe the QA and Software Testing Newsletter

In QTP, after you create a component or function library including registered user functions, you should check that they run smoothly, without errors in syntax or logic. To debug a function library, you must first associate it with a component via its application area and then debug it from that component.

 

To detect and isolate defects in a component or function library, you can control the run session using the Pause command as well as various step commands that enable you to step into, over, and out of a specific step.

 

You can use the Start from Step command to begin your debug session at a specific point in your component. You can also use the Run to Step command to pause the run at a specific point in your component. You can set breakpoints, and then enable and disable them as you debug different parts of your component or function library.

 

When the component or function library run stops at a breakpoint, you can use the Debug Viewer to check and modify the values of VBScript objects and variables. Also, if QTP displays a run error message during a run session, you can click the Debug button on the error message to suspend the run and debug the component or function library.

 

You can also use the Run from Step command to run your component or function library from a selected step to the end. This enables you to check a specific section of your application or to confirm that a certain part of your component or function library runs smoothly.

 

Important things to remember:

 

  • While the component and function libraries are running in debug mode, they are read-only. You can modify the content after you stop the debug session. If needed, you can enable the function library for editing (File > Enable Editing) after you stop the session.  After you implement your changes, you can continue debugging your component and function libraries.
  • If you perform a file operation, the debug session is stopped.
  • In QTP, when you open a component, QTP creates a local copy of the external resources that are saved to your Quality Center project. So, any changes you apply to any external resource that is saved in your Quality Center project, such as a function library, will not be implemented in the component until the component is closed and reopened.
    Please note, an external resource is any resource that was not created using QTP, such as, a function library created in an external editor.
Click here to continue Reading this post....

SPONSORED LINKS

Blog Archive