Saturday, 28 May 2016

Difference between REST & SOAP...!!!



Difference between REST and SOAP 


#
SOAP
REST
1.
XML based message protocol
Architectural style Protocol
2.
Uses WSDL for Communication
Uses XML or JSON
3.
Transport Independent

***Since SOAP messages are wrapped inside a SOAP envelop it can be sent over to any transport mechanism e.g. TCP, FTP, SMTP or any other protocol
Transport Dependent

***RESTful web services are heavily dependent upon HTTP protocol.
4.
SOAP web service can return response with only XML
RESTful web service can return response in various format e.g. JSON, XML and HTML
5.
Difficult to call from Javascript
Easy to call from JavaScript
6.
SOAP messages consumes more bandwidth

***Because SOAP has additional header for every message & XML is more verbose than JSON
Rest consumes less bandwidth

*** Because RESTFul services utilizes HTTP header.

7.
SOAP web services totally ignore web caching mechanism.

RESTful web service take full advantage of web caching mechanism because they are basically URL based
8.
Security in SOAP based web services need additional infrastructure in web to enable message or transport level security concerns. 

Security in RESTful web service can be implemented using standard and traditional solutions for authorised access to certain web resources
9.
SOAP Stands for Simple Object Access Protocol (SOAP).
REST stands for REpresentational State Transfer (REST)


***Jain

How to set LoadRunner Agent as a service or process..???

Difference between Agent as Process & Agent as Service


Agent as Process
Agent as Service
It runs the ‘magentproc.exe
It runs the service ‘magentservice’ 
User needs to login to the machine in order to start this Agent
Runs automatically even if the user does not log in to the system

Have to start the LoadRunner agent manually each time we reboot the PC/server or
You need to put the LoadRunner agent process into a windows startup group
 Load Runner Agent start automatically 
During Load Runner Installation

Agent as process :- During  installation select the  option "Manual log into the Load Generator machine”
Agent as service :- During  installation select the  option "Allow Virtual Users to run on this machine without user login"  

After Load Runner installation

***To switch from running the LoadRunner agent as a service to running as a process:
1. Uninstall LoadRunner agent service by typing in
magentservice.exe -remove<enter>
2. If the uninstall is sucessful, you will receive the following messages:
Stopping Load Runner Agent Service.
Load Runner Agent Service stopped.
Load Runner Agent Service removed.
3. Start the agent process by running magentproc.exe from <LoadRunner>\launch_service\bin
4. Add the LoadRunner Agent Process shortcut back into the Startup group.

***To switch from running the LoadRunner agent as a process to running as a service:
1. Remove the LoadRunner Agent Process shortcut from the Start -> Program Files -> Startup group.
2. Install magentservice.exe
Type in magentservice.exe -install<enter>
3. If the install is successful, you will receive the following messages:
LoadRunner Agent Service installed or started
4. Go to the Window’s Services and change its properties to start it as "Automatic."
NOTE -  You need admin rights to do this.

***The magentservice.exe file path is
C:\Program Files (x86)\HP\LoadRunner\bin or C:\Program Files\HP\LoadRunner\bin


*** Jain

Wednesday, 13 April 2016

What are the modules of Quality Center?

The Quality Center modules are:

Management Module: This module includes following sub modules:

1. Release module: Enable us to define release and cycles for the application management process.
2. Libraries module: Enables us to define libraries to track changes in project, reuse entities in project, or share entities across multiple projects.

Requirement Module: Helps us to manage requirements. This includes defining what we are testing, defining requirement topics and items, also analyzing requirements.

Test Plan: Enable us to develop and manage test in a hierarchical tree-structure. Tests can be linked to requirement and defects.

Test Resources: Enables us to manage test resources in a hierarchical tree structure. Tests resources can be associated with tests.

Test lab: Enables us to run tests and analyze the results.

Defect Module: Helps us to report defects, determine, repair priorities and reopen defects.

Dashboard: Helps to create graphs, reports and excel reports.

What is Quality Center?

HP Quality Center is Web based Test Management tool. We can access Quality Center over the internet or intranet, via a Web browser. It involves interrelated steps such as defining release, developing requirement, designing and execution of tests, monitoring and reporting defects. Quality Center simplifies and organizes application management by giving us systematic control over the process. It helps in creating framework and foundation for application management workflow. Quality center features a system for organizing and tracking application release, enabling us to align business priorities and quality expectation with our project’s requirement, test and defects.

What is the testing lifecycle?

There is no standard testing life cycle, but it is consist of following phases:

- Test Planning (Test Strategy, Test Plan, Test Bed Creation)
- Test Development (Test Procedures, Test Scenarios, Test Cases)
- Test Execution
- Result Analysis (compare Expected to Actual results)
- Defect Tracking
- Reporting

What are the automated Performance testing phases?

The phases involved in automated performance testing are:

Planning/Design: This is the primary phase where team will be gathering the requirements of the performance testing. Requirements can be Business, Technical, System and Team requirements.

Build: This phase consists of automating the requirements collected during the design phase.

Execution: it is done in multiple phases. It consists of various types of testing like baseline, benchmarking testing

Analyzing and tuning: During the performance testing we will be capturing all the details related to the system like Response time and System Resources for identifying the major bottlenecks of the system. After the bottlenecks are identified we have to tune the system to improve the overall performance.

What activities are performed during performance testing of any application?

Following activities are performed during testing of application:

1. Create user scenarios
2. User Distribution
3. Scripting
4. Dry run of the application
5. Running load test and analyzing the result