Spike Testing

Spike Testing

Spike testing is done to check if the application can handle, if there is any sudden spike of user on the application. And it will let the customer know if the system will crash or it will handle the spike with some  degradation on the application behavior.

Difference between Spike and stress testing?

Spike Test :

  • And Spike Test is done on the system to check the behavior of the application with sudden spike.
  • So if the load is spiked up sudden the application the behavior of the infrastructure can be tested.
  • And also the Spike Test will let the customer know how spike it can handle with the current infrastructure.
  • So this type of testing important to check negative scenarios on the application.

Stress Test :

  • Stress Test is used to test the breaking point of the application.
  • And also check how many concurrent Vuser can a application handle.
  • So large data will be loaded into the application.

Tools recommended for Spike Test in performance testing.

How to add think time or wait time in Ajax TrueClient?

Adding Wait or Think Time in Ajax TrueClient Scripts.

There are different type of wait object to method present in ajax trueclient to add into the script. We will see the different option present and how they are different from each others. And also the purpose of each method. There are two ways we can add the wait in the trueclient script. So they are

  • Wait
    • It will wait for the duration provided in the wait step.
    • So the next will be triggered even if the step is ready.
  • Wait for Object
    • It will wait for the object until the object is present in page.
    • So that the previous page will wait still loading is completed.

Step 1 :

  • Launch the trueclient protocol in the Vugen.
  • And click on Develop script option in the script.
  • And record the flow , after that we can add the wait or wait for object to the script.

Ajax TrueClient Adding Transactions

Click Here to see how to record the script in Ajax TrueClient.

Step 2 :

  • Once you have recorded the flow completely. Then you can add the wait to the scripts.
  • Click on the Toolbox option present in the left side of the developer mode mode editor.
  • Under that option click on function bar.
  • And you will see the Wait and Wait for Object component present in it.

Wait Time in Ajax TrueClient

 

Step 3 :

  • Choose Wait component form the toolbox.
  • Drag and place the Wait after the step where you want it to be placed.
  • So the Wait component will be added to the script.
  • And also you can edit the Wait time in that step.
  • So you can mention how many seconds or minutes the wait step wait.
  • By default the value will be 3 seconds.

Step 5 :

  • Lets add Wait for Object in the step.
  • Choose Wait for Object component form the toolbox.
  • Drag and place the Wait for Object after the step where you want it to be placed.
  • Click on Click to Choose an Object from the Component.
  • And a finder section widow will be displayed. Where you need to select the object to wait.

Step 6 :

  • Once you select the object for which the script should be waiting.
  • You can also change the xpath of the wait object.
  • And now you can run the script.

 

Jmeter Listener

Jmeter Listener

There are different type of listeners present in Jmeter. We will see all the listeners and there usage one by one.

Aggregate Graph :
Aggregate Report :
Assertion Results
Backend Listener
BeanShell Listener
BSF Listener
Comparison Assertion Visualizer
Generate Summary Results
Graph Results
JSR223 Listener
Mailer Visualizer
Monitor Results
Response Time Graph
Saves Responses to a file
Simple Data Writer
Summary Report
View Results in Table
View Results Tree

Load Testing

Load Testing

It will help to check the application's  behavior to perform under anticipated loads on application. The objective is to identify performance bottlenecks of the application under expected load. Load Test will determine the maximum operating capacity of an application. And also determine whether current application infrastructure is sufficient or we need increase to run the application. It also give the stability of application with respect to maximum number user load. It will also determine the number of concurrent users that an application can support with any degradation of the application.

Difference between load and stress testing?

Load Test :

  • And load Test is to test the system behavior under normal workload conditions, and it is just testing or simulating with the actual workload.
  • So the load Test will not be tested with loading of data into database.

Stress Test :

  • Stress Test is used to test the breaking point of the application.
  • And also check how many concurrent Vuser can a application handle.
  • So large data will be loaded into the application.

Tools recommended for Load Test in performance testing.

How to do parameterization in Ajax TrueClient Script?

Parametrization in Ajax TrueClient Script.

Adding Parametrization to the script in Ajax TrueClient Script.

Step 1 :

  • Launch the trueclient protocol in the Vugen.
  • And click on Develop script option in the script.
  • And record the flow , after that we can add the parameter for the script.

Ajax TrueClient Adding Transactions

Click Here to see how to record the script in Ajax TrueClient.

Step 2 :

  • Once you have recorded the flow completely. Then one can add the parameter to the scripts.
  • So select the step in the flow for which you want to add the parameter.
  • Click on the step. Then select click on Js option in the step.

Parameterization in Ajax TrueClient Script

Step 3 :

  • Select the word or the variable which you want to parameterize.
  • Right click on the word.
  • And select the Create a New Parameter from the selection.

Parameterization in Ajax TrueClient Script

Step 4 :

  • Enter Parameter window will be displayed.
  • Enter the Name of the parameter.
  • And then Click on OK Button.

Step 5 :

  • And so the Original value will be replaced with parameter.
  • And Click on OK button of the editor.
  • Function used for parameter is TC.Param("P_BaseURL");
  • Now the value in the Step will be replaced with parameter as shown below.

Ajax TrueClient LoadRunner Tutorials

Ajax TrueClient LoadRunner Tutorial

Training Summary

Ajax TrueClient protocol in the loadrunner.  Ajax TrueClient protocol is mainly used to do the user side testing or the behavior of the browser side. So it is a heavy protocol due to which the number of load generator for the execution will be more compared to web scripts.

Syllabus


1. Tutorial  -> How to record Ajax TrueClient script in Loadrunner.


2. Tutorial -> How to add Parametrization in Ajax TrueClient script.


3. Tutorial -> How to Capture the values in Ajax TrueClient script.


4. Tutorial -> How to add Transactions in Ajax TrueClient Script.


5. Tutorial -> How to Call external C- Function in Ajax TrueClient Script.


6. Tutorial -> Adding VTS Functions to the Script.


7. Tutorial -> Different Vuser Function present in Ajax TrueClient Script.


8. Tutorial-> Interview Questions for Ajax TrueClient Script.


9. Tutorial-> Quiz related Ajax TrueClient Script.

Stress Testing

Stress Testing

Stress test is one of the test done on the application to find the breaking point of the application. It will determine how much load the application can handle. How will the response time and resource behavior when the extreme load is applied on the system. Important it will give the customer the need confidence how much load the system can handle with existing resources.

Difference between stress and load testing?

Stress Test :

  • Stress Test is used to test the breaking point of the application.
  • And also check how many concurrent Vuser can a application handle.
  • So large data will be loaded into the application.

Load Testing :

  • And load Testing is to test the system behavior under normal workload conditions, and it is just testing or simulating with the actual workload.
  • So the load Testing will not be tested with loading of data into database.

Tools recommended for Stress Test in performance testing.

Volume Testing

Volume Testing

Volume Test is used to test large number of data populating in database for a period of time or for a particulate time. And check if the application is able to handle the volume of data getting loaded into the application. And also see the overall application behavior is monitored. So the objective is to check software application's performance under varying database/batch volumes.

Need for Volume Testing.

  • Volume Testing is done to check if the application can handle large data loading into the database.
  • So will test how will behaviors during the test.
  • Handling of large data loading into the database.
  • And also the utilization of CPU and memory resources.

Difference between volume and load testing?

Volume Test :

  • Volume Test is used to test large number of data populating in database for a period of time or for a particulate time.
  • And check if the application is able to handle the volume of data getting loaded into the application.
  • So large data will be loaded into the application.

Load Testing :

  • And load Testing is to test the system behavior under normal workload conditions, and it is just testing or simulating with the actual workload.
  • So the load Testing will not be tested with loading of data into database.

Tools recommended for Volume Test in performance testing.

LoadRunner Tutorials

HP LoadRunner Tutorial

Training Summary

LoadRunner is the product from Micro Focus Company currently earlier it was with HP Team. Loadrunner is the most widely used tool for performance testing as it support multiple protocol and also its user friendly compared to any other tools in the market. Here we will be seeing each part of the loadrunner and its working step by step. And also there are multiple post related to Loadrunner and at last you can test your understanding using quiz.

Syllabus


Tutorial  -> Architecture of Loadrunner and Introduction to Loadrunner


Tutorial -> Recording Options in Loadrunner.


Tutorial -> How to record web script in Loadrunner.


Tutorial -> How to do Parametrization in Loadrunner.


Tutorial -> How to do Correlation in Loadrunner.


Tutorial -> How to use Web_reg_save_param for Correlation.


Tutorial -> Loadrunner Functions


Tutorial -> Interview Questions


Tutorial-> Quiz to test your understanding on Loadrunner.


 

How to call C Function in Ajax TrueClient?

Call C Function in Ajax TrueClient Script

C Function in ajax trueclient is used to write your own custom code in the C-function.c file. Then call the function in your script to execute the custom code.

We will see how to call the C function from the ajax trueclient script step by step.

Step 1 :

  • Launch the trueclient protocol in the Vugen.
  • And click on Develop script option in the script.
  • And record the flow or you can add the functions before itself.

Add Ajax TrueClient VTS functions : Script

Click Here to know how to record the script in trueclient

Step 2:

  • Drag and drop the Evaluate Java script into the trueclient panel from the miscellaneous section.
  • And click on the js option present in the Evaluate Java script option.
  • Once you click on the js option, the working area will be displayed.

Add Ajax TrueClient VTS functions : Java script

Step 3 :

  • Call the C function using the TC.evalC function.
  • Syntax : TC.evalC(Functionname,timeout);
    • Functionname : Name of the function which you will be calling from the C Function file.
    • timeout : You can specific how long you want the function to wait for completing it.
  • So the function looks like this TC.evalC("Demo",20);  after you entering the required field data.
  • And also  we will add the message so that we can see the message in the output panel once the function is successfully called.
  • After writing the function click on OK button.

Click Here to know more about the Ajax TrueClient functions.

Step 4 :

  • Now go to the C-function file and select the file.
  • Write your custom code in the C-Function file.
  • Save the script.
  • Close the Developer mode of the trueclient script.

Step 5 :

  • Once the developer mode is closed and the script view is enabled.
  • Save the script again and click on Run button.
  • So the script will be executed end to end without any error message.
  • Go to the output panel, you will see the message when the function is called and the custom code as well.
  • Below is the example how it will be displayed in the output panel.