Load Runner interview Question & Answers-9



Q401. What are the main advantages of the modular approach?
Answer:
Modular approach helpful:
a. To reuse the code
b. To save the time
c. To save the effort
d. To save the money
e. To make the change at one place reflects in all the scripts
Q402. What are the criteria to conduct the performance testing of an application?
Answer:
The only criteria to drop the application in performance testing is:
  1. Is there a reasonable load on the application? Performance testing can be parked in case few (like <5) users load is expecting.
  2. Is there a chance to increase the load in near future?
  3. Is there sufficient hardware available in the production environment?
  4. Is network supportive?
Q403. How can you identify performance test use cases for any application?
Answer:
The identification and the priority of the performance test case should be done on the basis of volume. Also, the first preference should be given to the core functionality. Testing is done to measure the performance of every action performed under core functionality/flow. Once the core functionality is covered then next preference should be given to those functionalities which are having database operations, concurrency limit etc.
Q404. Tell a scenario where throughput is increasing with response time means when they are directly proportional?
Answer:
Condition A:
a. when user load increases
b. the network has sufficient bandwidth
c. application crossed its average load bearing capacity
Condition B:
a. when there are lots of CSS (Cascading Style Sheet) in the application which are not ignored in the script.
In these cases,throughput increases along with response time.
Q405. Assume that I am the client , collect what are all requirements you will gather from me?
Answer:
we will gather the following requirements from the client
  • No. of users
  • the region from where the customers are going to access the application.
  • Types of testings to be conduct on the application testing
  • The hardware threshold statistics details like cpu , memory ,heap etc.
  • Expected response times
  • No. of transactions per hour
Q406. Working for a banking application I want to capture the customer account balance and I have to add 100 rupees to his/her account ? How you will do this?
Answer:
Int y=100;
step 1:using the correlation function capture the account holder balance .
web_reg_save_param(“balance”,”lb=”,”rb=”,LAST);
Step 2: the captured balance is a string and the amount going to add to the account is integer. So convert the sting to integer using a to I function .
Int x;
x=atoi(lr_eval_string(“{balance}”));
Step 3: Now converted amount will be the integer and the adding amount is also integer . So we can add those directly.
z=x+y;
Q407. Assume that you are working for a school application , once the exam result was released. How to know how many students are passed and how many are failed in a particular subject ?
Answer:
I will insert the text verification function web_reg_find();
web_reg_find(“text=pass”,”savecount=passed”,LAST);
web_reg_find(“text=failed”,”savecount=failed”,LAST);
once the script is replied then
Passed_count and failed_count let you know how many students are failed and how many are passed in the results.
Q408. What is workload model? How it will be useful?
Answer:
Work model is very useful to the tester who is going to design the scenario in the controller to simulate production peak hour statistics. Workload model contains CBT’s , load distribution based on type of the testing, pacing calculation , think time calculations.
Q409. What is pacing?
Answer:
Pacing is simply I can say that , the time delay in between two iterations .
Q410. How you can achieve more transactions with the same load?
Answer:
To achieve more transactions either decrease the pacing time or simply remove the pacing time from RTS(run time settings) by selecting no pacing option.
Then back to back the scripts will be iterates and automatically at the same time we can achieve more transactions.
Q411. How to connect and disconnect to data base from vugen script?
Answer:
Using lr_db_connect(); function we can connect to the database and using lr_db_disconnect(); function we can disconnect from the database .
Q412. How you will get vuser ip address?
Answer:
The lr_get_vuser_ip function returns the IPv4 address of a Vuser. When performing IP spoofing, each Vuser can use a different address. This function allows you to determine the current Vuser's IP address.
Q413. How to get information about vuser?
Answer:
We can get info about vuser using the function lr_who_am_i();
Q414. When you will use the fiddler?
Answer:
When ever we failed to record the script using vugen or when ever we find few action are not recorded in the script then will use fiddler tool.
Using fiddler tool we will record the script and then we will convert fiddler script into vugen script.
Q415. What is extension of fiddler script?
Answer:
The fiddler script extension is “.saz”.
Q416. Is it possible to execute the jmeter scripts in the controller?
Answer:
yeah . Possible to execute the jmeter scripts in the load runner component controller.
Q417. How to read the value from load runner variables?
Answer:
To read the values from load runner variables we will use lr_eval_string();
Q418. What is the use of the function lr_save_string();?
Answer:
To assign a value to load runner variable we will use this function.
Syntax: lr_save_string(new-employee,”girmiti”);



No comments:

Post a Comment