Strtok Function in Loadrunner with Example

Sometimes we want to capture all the values that match our specified delimiters and conditions but strtok function itself only captures the current value in the char token. Adding a sprintf function will allow you to store each of the values that you want to capture for later use (like choosing random) in different parameters.

Read More

Linux Interview Questions and Answers

What is Linux?
How many flavors of Linux are available?
What is the latest version of Linux you are using?
What is the difference between Linux and Sun Solaris?
What is the difference between Ubuntu and Linux?
Do you have experience in any other operating system like Windows 2003 and 2010?
What is gzip?
What is tar?
What is unzip? How do you add unzip software in Linux?
What is bash?
What is Linux kernel?
What is the difference between swap and main memory?
What is the difference between Linux (BASH) and Windows (DOS)?
Do you have experience in writing shell scripts?
How good you are at writing shell scripts?
How do you execute the shell scripts in Linux?
For example if a user has permissions 777? What are the rights that user will have?
Have you worked on cloud?
Do you know how to add the hard disks in Linux instantly?
How familiar are you with the grep command?
What is the difference between vi and cat?
How do you save the file in vi editor?
How to remove file and folder using rm command?
Read More

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad:

What is NeoLoad?

NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications.

What is the difference between Loadrunner, JMeter and NeoLoad?

What are the different counters you monitor in NeoLoad?

Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc.

What are the different type of tools you can integrate with NeoLoad?

App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration.

What are the different type of Operating systems you can monitor?

Linux Monitor, Solaris Monitor, AIX Monitor, HP-UX Monitor, Microsoft Monitors, Microsoft Windows Monitor, VMWare Monitor.

What are the different web protocols NeoLoad supports?

It supports http, https, flex, Silverlight, GWT, RTMP, SOAP, Java Serialization, JMS, Oracle Forms, SPDY, and Oracle Siebel.

How do you add validation in NeoLoad?

You can validate using HTTP response codes, for example, if the response code is 200, then the script is pass else fail. You can customize the code according to your requirement.

Does NeoLoad support SSL?

Yes, NeoLoad supports Secure Sockets Layer. You can record and playback both http and https requests.

Does NeoLoad support ActiveX components?

Yes, NeoLoad supports ActiveX components.

Does NeoLoad works on Cloud platform?

Yes, NeoLoad works on cloud platform, and you can run load generators from the cloud.

What are the different monitors available in NeoLoad?

NeoLoad has monitors for most of the popular web servers, application, database, operating systems. Some of them are Apache, Microsoft IIS, Microsoft .net, WebLogic, WebSphere, ORACLE DBA, SQL etc.

Does NeoLoad supports DB2?

Yes, NeoLoad supports DB2, and it uses JDBC protocol to monitor databases.

What is the structure of Virtual Script in the NeoLoad?

It is same as Loadrunner, it has three parts mainly, Init Container, Actions Container, End Container.

What are the different options we have in Runtime settings?

We have mainly Error Handling, Think Time, Tasks, SLA, and Global Validations.

Some of the Important Links On NeoLoad:
Read More

JMeter Interview Questions and Answers

What is JMeter?

Apache JMeter is an open source load testing application which is purely developed in Java. Apache JMeter is mainly used to test the performance and stability of an application.

What are the different type of applications you can test with JMeter?

You can test mainly web applications, it all supports to test PHP, Java, ASP.NET, web services, databases, mail servers, network etc.

What are the protocol JMeter supports?

IT support more than 10 protocols, here are some of the protocols that JMeter supports.
Web Protocol: To test the web applications, it supports both HTTP and HTTPS protocols.
Web Services: To test web services applications, it supports both SOAP and REST.
FTP: File Transfer Protocol, it is used to test the FTP servers and applications.
Database via JDBC: It is used to test the database applications.
LDAP: Lightweight Directory Access Protocol
Message-oriented middleware (MOM) via JMS
Mail – It is used to test mail servers such as SMTP(S), POP3(S) and IMAP(S)
MongoDB (NoSQL): it is recently supported protocol by JMeter.
Native commands or shell scripts

Why do you choose JMeter as your performance testing tool?

JMeter is an open source tool and is widely used tool in the market and it has the large online community support and is developed in pure Java and you can test more than 10 protocols.

What is the difference between JMeter and Loadrunner?

JMeter is an open source tool.
Loadrunner is one of the costliest tools in the market.
JMeter is primarily focusing on web and Java protocols.
Loadrunner supports more than 50 protocols.
JMeter has good online community support.
Loadrunner has technical support, but they hardly resolve your issue.
JMeter is a standalone application and there is no centralized process.
You can operate Loadrunner from a centralized process such as performance center.

What is a Listener? What are the different type of listeners?

Listener is a graph or an image that shows the results of different samplers. You have more than 50 listeners through standard JMeter and JMeter plugins.

List of listeners are: Aggregate graph, Aggregate report, Assertion Results, Backend Listener, Bean Shell Listener, BSF Listener, Comparison Assertion Visualizer, Distribution Graph (alpha), Generate summary results, Graph Results, JSR223 Listener, Mailer Visualizer, Monitor Results, Response Time Graph, Save responses to a file, Simple data writer, Spline Visualizer, Summary Report, View Results in Table, View Results Tree.

What are timers and what are the different timers available?

Timers is waiting time between requests, these timers are used to simulate real user behavior during each request, this helps to simulate real time production load on the server.
There are different timers available in JMeter: Bean Shell Timer, BSF Timer, Constant Throughput Timer, Constant Timer, Gaussian Random Timer, JSR223 Timer, Poisson Random Timer, Synchronizing Timer, and Uniform Random Timer.

What is assertion and what are the different type of assertions available in JMeter?

Assertions are used to define the check points in different parts of the script, there are different type of assertions available Bean Shell Assertion, BSF Assertion, Compare Assertion, Duration Assertion, HTML Assertion, JSR223 Assertion, MD5Hex Assertion, Response Assertion, Size Assertion, SMIME Assertion, XML Assertion.

Read More

Selenium Interview Questions and Answers


What is Selenium? What is the difference between Selenium WebDriver and Selenium IDE?

Selenium is an automation tool which is used to test different applications mainly web applications, browsers and platforms. Selenium is a set of tools:
Selenium Integrated Development Environment: It’s a record and playback tool designed to record the user actions and playback the user actions that are performed.
Selenium Remote Control: It is used to write automated web applications UI in any programming languages such as Java.
Selenium WebDriver: It is introduced in Selenium 2.0, the robust technology that was used in Selenium webdriver uses browser native commands.
Selenium Grid: It is also introduced with Selenium 2.0, it is mainly used to distribute the test in different systems and manage from a single point.

What are the browsers and environments selenium supports?

Selenium Supporting Browsers:  Firefox 27, 26, 24, 17; Internet explorer 6, 7, 8, 9, 10, 11; Safari Driver 5.1x, Opera Driver 12.x and chrome driver.
Selenium Supporting Environments: Windows xp, 7, 8, 8.1 and Windows 10 and Linux.

What are the programming languages Selenium supports?

Selenium supports C#, Java, JavaScript, Objective C, Perl, PHP, Python, Ruby.

How much you rate yourself on Selenium out of 10?

Well, don’t overrate yourself for this question, give the answer what you feel and don’t give too less as well.

Why did you choose Selenium as your tool for automation?

These days most of the company’s preferring Selenium as their functional testing tool as it is an open source software and is widely used and you can do different types of automation testing and it has large online community support and you can develop our scripts with different programming languages such as C#, Java, Ruby, Python etc.

What are the differences between Selenium and UFT or QTP?

Selenium is an open source tool
UFT is a commercial automation tool by HP.
You can test only web applications
You can test different applications and web browsers.
You can develop the scripts only on VB script
You can develop the scripts with Java, Perl, Ruby, PHP etc.
Selenium has good online community support
UFT has technical support by HP

What are the different types of testing you can do with Selenium?

By using selenium you can do functional testing, smoke testing, regression testing, integration testing, Load and performance testing.

What is Selenese?

Selense is s a set of commands that were performed by a selenium tool on the web application.

What are the different type of locators or elements available in Selenium?

ID, Name, Link, CSS, XPATH, DOM and location by element id etc.

What is assertion and what are the different types of assertions available in Selenium?

You can perform different assertions on the application such as text, alert, editable, checked etc.One of the popular assertion and my favorite is assertTrue(message, condition).

What are the different web drivers available in selenium?

FirexfoxDriver, ChromeDriver, SafariDriver, OperaDriver, InternetExplorerDriver, IPhoneDriver, IphoneSimulaterDriver, RemoteWebDriver.

These are some of the frequently asked questions in selenium.

Some of the important websites on Selenium:

Read More

Ajax Click and Script Functions in Loadrunner

The following function emulates the real behavior of Ajax click and script applications in Loadrunner.

Function Name
This functions emulates the user extending or collapsing a Menu
This functions emulates the auto complete based on the text that we entered.
This function emulates the user extending or collapsing some of the fields in the application.
This function emulates the user setting a rating of a rating control.
This function emulates that reordering of lists.
This function emulates setting of value using slide control.
This function emulates the user performing on folder-style tabs in atlas applications.
Read More

SAP Click and Script Functions in Loadrunner

SAP click and script functions emulates the real behavior of users performing on SAP business process using Loadrunner. VuGen records all the activity that user performed on the SAP application. The following functions are generated during recording.

Emulates a user click action on SAP application button.
It emulates user action performing on SAP GUI check box.
It emulates user action performing on the drop down menu
It emulates that user click on any editable field.
It emulates SAP Enterprise Portal application iView frame on SAP GUI.
It emulates the use of drop-down menu on multiple SAP GUI list for HTML application.
It emulates the user navigation on top level menu of SAP GUI.
Emulates the user action on navigation bar on SAP GUI web application.
It emulates the user typing text on ok code box on SAP GUI HTML application.
Emulates the user performing on SAP enterprise portal desktop.
Emulates that user choosing a radio button out of multiple radio button options.
Emulates the user switching from one tab to another in web application.
Emulates the user use on SAP tables or grid.
Emulates the actions on SAP GUI tree view object.
Read More

HP Stomrunner Load – Agile Performance Testing Tool from Loadrunner Team

So you working agile these days, the application developing has become faster and faster day by day and the release periods getting closer and closer with so many involved in development. You needed to be very easy to plan, run and scale your web and mobile performance testing so that any one regardless of his expertise can easily handle the agile testing process.

HP Stomrunner Load enables agile development team to easily test and tune the applications. Stomrunner Load is very simple, and it allow to easily design load test on cloud and identify the performance issues quickly.

You can use your Loadrunner scripts with Stomrunner Load. All you need to do is upload you scripts to Stomrunner Load.

You can try HP Stomrunner Load here..

Check out this video for more on HP Stomrunner Load.

Read More

SAP extends its reseller agreement with HP to sell Loadrunner

HP has recently signed a reseller agreement with SAP. On this agreement, SAP will resell all the HP Software testing products such as Loadrunner, UFT etc. SAP is offering all the HP solution under Sap Fortify by HP to identify the bugs/defects/issues that occur during development.

SAP believes that a company will suffer huge losses if there are any business interruptions, security and performance issues during production and it will also affect the brand image of the company. The SAP Fortify by HP products will help to detect the issues before the application goes to production and helps to fix the issues.

Sap Fortify by HP will help in the following areas:

  • It will help to identify and fix the software defects.
  • It will help to lower the cost of development of software.
  • It will fix the performance issues before application goes to the production.
  • It will help to fix all the security issues in the application.

Read More

Web Controller in Loadrunner - A New Feature From Loadrunner 12.02

HP has released a new feature called the Web Controller. The name itself indicates that now you can control your load test from the browser interface and can be accessed through a browser. Now, you can run your load tests from anywhere. It is just like a small HP Performance Center.

You can see some of the screenshots of the Loadrunner Web Controller here.

Web Controller 1

Web Controller 2

Web Controller 3

What are you waiting for... Let's go ahead and install the new version of Loadrunner.

Please note that this has been added in Loadrunner 12.02 as tech preview and not a fully functional component. You can give your feedback in this link.

For more Loadrunner Tutorials

Read More