Saturday, July 30, 2016

Open Source Software Automation Tools breif introduction

This blog is basically related to introduce very helpful open source software testing tools. It described tools which is used in different type of application testing like web automation , API , performance and mobile testing.


SELENIUM WEBDRIVER
 
The primary new feature in Selenium Webdriver 2.0 is the integration of the WebDriver API. WebDriver is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API. Selenium-WebDriver was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded. WebDriver’s goal is to supply a well-designed object-oriented API that provides improved support for modern advanced web-app testing problems. This leads WebDriver to support “Multiple Languages” as well as “Multiple Support Browsers” which means that if any API supports multiple languages then this automatically leads to “Multiple Platforms”.

For more details and download visit: http://www.seleniumhq.org/ 



APPIUM
 
appiumAppium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms. Native apps are those written using the iOS or Android SDKs. Mobile web apps are web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in ‘Browser’ app on Android). Hybrid apps have a wrapper around a “webview” – a native control that enables interaction with web content. Appium isl developed and supported by Sauce Labs to test on cloud base platform. Appium is a HTTP server written in node.js which creates and handles multiple WebDriver sessions for different platforms like iOS and Android.
  
For more details and download visit: http://appium.io/


 POSTMAN Jetpacks

Postman helps you be extremely efficient while working with APIs. With Postman, you can construct requests quickly, save them for later use and analyze the responses sent by the API. Postman can dramatically cut down the time required to test and develop APIs. Postman adapts itself for individual developers, small teams or big organizations equally well.

Jetpacks are an awesome set of features which will make your API workflow faster and more efficient. The goal is to make you write less - or nothing at all - and still be able to execute complex scenarios, that would otherwise take a lot of code or an endless series of clicks in other applications.
 
For more details and download visit: https://www.getpostman.com


 Apache jMeter
 
The Apache JMeter application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

 
Apache JMeter may be used to test performance both on static and dynamic resources (Webservices (SOAP/REST), Web dynamic languages - PHP, Java, ASP.NET, Files, etc. -, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.
 






For more details and download visit: http://jmeter.apache.org


Above all tools are open source and it is widely used in industry for testing different types of platform. To enhance this tools into cloud base user need to purchasea licence to run test scripts on cloud envrionment.


 

 

Wednesday, July 20, 2016

Mobile Automation in Agile World


Test Automation of Mobile Apss , Web in Agile.


To achieve compatibility between users, devices and the market, including test automation as a part of the agile development process is typical. Fortunately, a lot of tools are available, and test automation is a perfect fit for this process. For example, let’s say your typical development sprint is two weeks. You have daily standups and a lot of scrum activities, and you own internal policies that gear development to the final product. Test automation offers a significant value-add by enabling testing to be done in parallel — for example, as nightly test sessions. By the next morning, the tests will have been finalized and the results of the latest regression will be ready for review. Fixing an issue earlier will save a lot of time and get developers to finalize the product sooner; most importantly, it cumulates to better quality, with fewer bugs.





Test automation offers the possibility to test mobile apps instantly and effectively. Once tests have been automated, they can be executed quickly and repeatedly, again and again. In almost all cases, this is the most cost-effective method for regression testing of software products that have a long maintenance life. In fact, test automation of any mobile app is the best way to increase the effectiveness, efficiency and coverage of the testing process. The true benefit of automation comes not only from the reputability of tests, but also from the ability to execute tests that probably could not even be performed manually. Continuous integration together with mobile app testing as below.



Comparison of test automation frameworks.


So as per above image Appium is a pretty good choice for both apps and games because, in many cases, apps and games tend to be identical (or at least very similar) on both platforms, Android and iOS — and so the same test script can be applied to both. Another significant benefit of Appium is that users can write tests using their favorite development tools, environment and programming language, such as Java, Objective-C, JavaScript, PHP, Ruby, Python or C#, among many others.

Appium enables users to execute tests on mobile devices regardless of OS. This is possible because the Appium framework is basically a wrapper that translates Selenium’s WebDriver commands to UIAutomation (iOS), UIautomator (Android, API level 17 or higher) or Selendroid (Android, API level 16 or lower) commands, depending on the device’s type.


For full and details information about article click here
 

 

 
 


Sunday, July 17, 2016

Useful REST API response code list

REST API response code list.




Response Code
HTTP Operation
Response Body Contents
Description
200
GET, PUT, DELETE
Resource
No error, operation successful.
201 Created
POST
Resource that was created
Successful creation of a resource.
202 Accepted
POST, PUT, DELETE
N/A
The request was received.
204 No Content
GET, PUT, DELETE
N/A
The request was processed successfully, but no response body is needed.
301 Moved Permanently
GET
XHTML with link
Resource has moved.
303 See Other
GET
XHTML with link
Redirection.
304 Not Modified
Condition
 GET
N/A
Resource has not been modified.
400 Bad Request
GET, POST, PUT, DELETE
Error Message
Malformed syntax or a bad query.
401 Unauthorized
GET, POST, PUT, DELETE
Error Message
Action requires user authentication.
403 Forbidden
GET, POST, PUT, DELETE
Error Message
Authentication failure or invalid Application ID.
404 Not Found
GET, POST, PUT, DELETE
Error Message
Resource not found.
405 Not Allowed
GET, POST, PUT, DELETE
Error Message
Method not allowed on resource.
406 Not Acceptable
GET
Error Message
Requested representation not available for the resource.
408 Request Timeout
GET, POST
Error Message
Request has timed out.
409 Resource Conflict
PUT, PUT, DELETE
Error Message
State of the resource doesn't permit request.
410 Gone
GET, PUT
Error Message
The URI used to refer to a resource.
411 Length Required
POST, PUT
Error Message
The server needs to know the size of the entity body and it should be specified in the Content Length header.
412 Precondition failed
GET
Error Message
Operation not completed because preconditions were not met.
413 Request Entity Too Large
POST, PUT
Error Message
The representation was too large for the server to handle.
414 Request URI too long
POST, PUT
Error Message
The URI has more than 2k characters.
415 Unsupported Type
POST, PUT
Error Message
Representation not supported for the resource.
416 Requested Range Not Satisfiable
GET
Error Message
Requested range not satisfiable.
500 Server Error
GET, POST, PUT
Error Message
Internal server error.
501 Not Implemented
POST, PUT, DELETE
Error Message
Requested HTTP operation not supported.
502 Bad Gateway
GET, POST, PUT, DELETE
Error Message
Backend service failure (data store failure).
505
GET
Error Message
HTTP version not supported.


For API Testing check here.