HP LoadRunner VuGen Questions Bank: Q. 91 to 100
Learn “VuGen” Module of HP LoadRunner through FAQs:
Q. 91: What are the steps for creating a Web Services / SOA Vuser script?
Step -1: Creating a new Web Services script: using the SOA Test Generator, or manually create a new single or multiple protocol script, or a Business Process Testing component.
Step -2: Adding content to the script
Step -3: Setting properties, values, and checkpoints: we can enhance the script by customizing the step properties, inserting argument values, and setting checkpoints.
Step -4: parameterizing the script: Parameterization allows us to replace constant values with a variable to substitute new values for each iteration. To parameterize a value, doubleclick on a step to open its properties and click the ABC icon adjacent to the value box.
Step -5: Configuring the Run -Time settings: The Run -Time settings control the script�s behavior during execution. These settings include Web Service-specific settings and General settings like run logic, pacing, logging, and think time.
Step -6: Verifying that the script is functional: Replay the script in VuGen to verify that it runs correctly.
Step -7: Saving the script: Save the script in the file system or in a Quality Center repository. If we save the scripts in Quality Center, we can associate them to a test set and perform functional and regression testing directly from Quality Center.
<<<<<< =================== >>>>>>
Q. 92: How do we compare the WSDL Files?
When we import a WSDL file, VuGen makes a working copy and saves it along with the script. This saves resources and enables a more scalable and stable environment.
It is possible, however, that by the time we run the script, the original WSDL file will have changed. If we run the script, the test results may be inaccurate and the script may no longer be functional. Therefore, before replaying a Web Services script that was created at an earlier date, we should run a comparison test on the WSDL file.
VuGen provides a comparison tool, which compares the local working copy of the WSDL file with the original file on the file system or Web server. If the differences are significant, we can update the WSDL from the original copy using the Synchronize option in the Service Management dialog box.
VuGen provides a general utility, which allows us to compare any two XML files.
<<<<<< =================== >>>>>>
Q. 93: How VuGen displays the differences between two XML files in a Comparison report?
The Comparison report uses the following legend to mark the differences between the two XML files:
1) Yellow: Indicates changes to an existing element and is shown in both versions.
2) Green: Indicates a new element added and is shown in the original file copy.
3) Pink: Indicates a deleted element.
<<<<<< =================== >>>>>>
Q. 94: What are the ways of testing our system after creating the script?
Our completed script can be used to test our system in following ways:
1) Functional Testing: Run the script to see if our Web services are functional. We can also check to see if the Web service generated the expected values.
2) Load Testing: Integrate the script into a LoadRunner Controller scenario to test its performance under load.
3) Production Testing: Check your Web service�s performance over time through a Business Process Monitor profile.
<<<<<< =================== >>>>>>
Q. 95: What is the Service Test Management utility?
Service Test Management is an add-on utility for HP- Quality Center. This helps us to manage SOA testing by permitting import, storage and defining various services in Quality Center.
The Service Test Management integration allows us to do the following:
1) Store Web Services: Allows us to store and organize Web Services in Quality Center for use within Service Test.
2) Write Service Test scripts: Allows us to create scripts based on the services stored in Quality Center, while maintaining up-to-date WSDLs throughout the life-cycle of the service and the script.
3) Compose a Business Process Test: Allows us to create a BPT (Business Process Test) in Quality Center based on services defined through Service Test Management.
<<<<<< =================== >>>>>>
Q. 96: What are the benefits of Service Test Management utility towards quality improvement in an organization?
With the help of Service Test Management add-on for Quality Center, the organizations can draw following benefits in terms of improved quality processes:
1) Business analysts define application requirements and testing objectives.
2) Test managers and project leads design test plans and develop test cases.
3) Test managers automatically create QA testing requirements and test assets for SOA services and environments.
4) Test automation engineers create automated scripts and store them in the repository.
5) QA testers run manual and automated tests, report execution results, and enter defects.
6) Developers review and fix defects logged into the database.
7) Project managers can export test and resource data in various reports, or in native Microsoft Excel for analysis.
8) Product managers decide whether an application is ready to be released.
9) QA analysts can auto-generate test asset documentation in Microsoft Word format.
<<<<<< =================== >>>>>>
Q. 97: What is the use of Analyze Traffic feature of VuGen?
The Analyze Traffic feature of VuGen examines a capture file containing the server network traffic, and creates a script which emulates requests sent to or from the server. Such a script is created after analyzing the server traffic.
<<<<<< =================== >>>>>>
Q. 98: How many types of network traffic emulations are there?
There are two types of emulations:
1) Incoming traffic emulation: Incoming traffic scripts emulate situations in which we want to send requests to the server, but we do not have access to the client application, may be due to security constraints. The most accurate solution in this case is to generate a script from the traffic going into the server, from the side of the client.
2) Outgoing traffic emulation: Outgoing Traffic scripts emulate the server acting as a client for another server. In an application server that contains several internal servers, we may want to emulate communication between server machines, say between Server A and Server B. The solution in this case is to generate a script from the traffic sent as output from a particular server.
<<<<<< =================== >>>>>>
Q. 99: What is a Capture File?
A capture file is a trace file containing a log of all TCP traffic over the network.
Using a sniffer application, we obtain a dump of all of the network traffic. The sniffer captures all of the events on the network and saves them to a capture file.
We can generate a capture file using the command line utility or any other capture tool.
<<<<<< =================== >>>>>>
Q. 100: What is the use of Web Service Call View?
Web Service Call view is used to display snapshots, set properties, and add checkpoints to Web Service calls. These are applicable for Web Services and SOA Vuser scripts only.
To open the Web Service Call view, we need to open the Tree view from the VuGen window.
Download the Complete Question Bank
An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.