Posts

Showing posts from May, 2017

Installing TestNG in Eclipse

Image
Step 1: Launch Eclipse. On the menu bar, click Help. Choose the "Eclipse Marketplace..." option. Step 2:  In the Eclipse Marketplace dialog box, type TestNG in the search box and press the search button( magnifying glass) or press enter key Step 3:   Click Install Step 4:   A new window for feature selection will open, Do not change anything and   Click on confirm button Step 5: Click Next again on the succeeding dialog box until you reach the License Agreement dialog. Click "I accept the terms of the license agreement" then click Finish. Step 6:   If you encounter a Security warning, just click OK Wait for the installation to finish Step 7:   When Eclipse prompts you for a restart, just click Yes. Step 8:   After the restart, verify if TestNG was indeed successfully installed. Click Window > Preferences and see if TestNG is included on the Preferences list.

What is TestNG?

Image
So far we had been doing Selenium tests without generating a proper format for the test results. From this point on, we shall tackle how to make these reports using a test framework called TestNG. TestNG is a  Testing  framework that overcomes the limitations of another popular testing framework called JUnit. The "NG" means "Next Generation." Most Selenium users use this more than  Junit  because of its advantages. There are so many features of TestNG, but we will only focus on the most important ones that we can use in Selenium. Advantages of TestNG over JUnit There are three major advantages of TestNG over JUnit: Annotations are easier to understand Test cases can be grouped more easily Parallel testing is possible Annotations in TestNG are lines of code that can control how the method below them will be executed . They are always preceded by the @ symbol. A very early and quick example is the one shown below. Why do we need TestNG in Seleni...

APPIUM Tutorial For Beginners

APPIUM is a freely distributed open source mobile application UI   Testing  framework. Appium allows native, hybrid and web application testing and supports automation test on physical devices as well as on emulator or simulator both. It offers cross-platform application testing i.e. single API works for both Android and iOS platform test scripts. It has  NO  dependency on Mobile device OS. Because, APPIUM has framework or wrapper that translate  Selenium   Webdriver commands into UIAutomation (iOS) or UIAutomator (Android) commands depending on the device type not any OS type. Appium supports all languages that have Selenium client libraries like- Java, Objective-C,  JavaScript  with node.js, PHP, Ruby, Python,  C#  etc. APPIUM Design Concepts Appium is an 'HTTP Server' written using Node.js platform and drives iOS and Android session using Webdriver JSON wire protocol. Hence, before initializing the Appi...

identification of components must be included in performance testing:

1.   Functional, business critical features Components that have a Customer Service Level Agreement or those having complex business logic (and are critical for the business’s success) should be included. Example:   Checkout and Payment for an E-commerce site like eBay. #2.   Components that process high volumes of data Components, especially background jobs are to be included for sure.  Example:  Upload and download feature on a file sharing website. #3.   Components which are commonly used A component that is frequently used by end-users, jobs scheduled multiple times in a day, etc. Example:  Login and Logout. #4.   Components interfacing with one or more application systems In a system involving multiple applications that interact with one another, all the interface components must be deemed as critical for performance test. Example:  E-commerce sites interface with online banking sites for payments, which is an external th...

How does Functional Testing differ from Performance Testing?

Image
How does Functional Testing differ from Performance Testing?

Types of Performance Testing

Image
Load Testing Load testing is a type of performance test where the application is tested for its performance on normal and peak usage. Performance of an application is checked with respect to its response to the user request, its ability to respond consistently within accepted tolerance on different user loads. The key considerations are: What is the max load the application is able to hold before the application starts behaving unexpectedly? How much data the Database is able to handle before system slowness or the crash is observed? Are there any network related issues to be addressed? Stress Testing Stress testing is the test to find the ways to break the system. The test also gives the idea for the maximum load the system can hold. Generally Stress testing has incremental approach where the load is increased gradually. The test is started with good load for which application has been already tested. Then slowly more load is added to stress the system and the p...

Why Performance testing?

Performance testing has proved itself to be crucial for the success of a business. Not only does a poor performing site face financial  losses, it also could lead to legal repercussions at times. No one wants to put up with a slow performing, unreliable site in cases of purchasing, online test taking, bill payment, etc. With the internet being so widely available, the alternates are immense. It is easier to lose clientele than gain them and performance is a key game changer. Therefore, performance testing is no longer a name sake checkpoint before going live. It is indeed a  comprehensive and detailed stage  that would determine whether the performance of a site or an application meets the needs.

Product Backlog,Scrum Practices,Process flow of Scrum Methodologies:

Image
Product Backlog This is a repository where requirements are tracked with details on the no of requirements to be completed for each release. It should be maintained and prioritized by scrum master, and it should be distributed to the scrum team. Team can also request for a new requirement addition or modification or deletion Scrum Practices Practices are described in detailed: Process flow of Scrum Methodologies: Process flow of scrum testing is as follows: Each iteration of a scrum is known as Sprint Product backlog is a list where all details are entered to get end product During each Sprint, top items of Product backlog are selected and turned into Sprint backlog Team works on the defined sprint backlog Team checks for the daily work At the end of the sprint, team delivers product functionality

Scrum consists of three roles, and their responsibilities are explained as follows

Image
SCRUM is an agile development method which concentrates specifically on how to manage tasks within a team-based development environment. Basically, Scrum is derived from activity that occurs during a rugby match. Scrum believes in empowering the development team and advocates working in small teams (say- 7 to 9 members). It consists of three roles, and their responsibilities are explained as follows: Scrum Master Master is responsible for setting up the team, sprint meeting and removes obstacles to progress Product owner The Product Owner creates product backlog, prioritizes the backlog and is responsible for the delivery of the functionality at each iteration Scrum Team Team manages its own work and organizes the work to complete the sprint or cycle

Agile Testing Methodology

Image
Agile Testing Methodology

What is Agile Methodology?

AGILE methodology is a practice that promotes  continuous iteration  of development and testing throughout the software development lifecycle of the project. Both development and testing activities are concurrent unlike the Waterfall model. The agile software development emphasizes on four core values. Individual and team interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan