Thursday, January 31, 2019

How to clear text from textarea using selenium c# driver?

Declare the web element. Let say 'desc'

Various methods are:
1.         desc.SendKeys(Keys.Control + "a");
            desc.SendKeys(Keys.Delete);

2.            desc.Clear();

Sunday, December 30, 2018

How to test an autocomplete address in Selenium C# driver?

 //Define Search Address
        [FindsBy(How = How.Id, Using = "autocomplete")]
        private IWebElement SearchAddress { get; set; }

// Send value in Search Address
SearchAddress.SendKeys("223 Mount Eden Road, Mount Eden, Auckland");
            Thread.Sleep(1000);
            SearchAddress.SendKeys(Keys.Down);
            SearchAddress.SendKeys(Keys.Enter);

Tuesday, November 20, 2018

How to create your own XPath

There are two types of XPaths: Absolute and Relative

Absolute XPath: starts with single "/" i.e. start with the root node.

Relative XPath: starts with double "//".

Tuesday, November 13, 2018

Uploading an image using AutoIT in selenium c# driver

//Creating an object
AutoItX3Lib.AutoItX3 autoIt = new AutoItX3();

//Mention the name of the active/opened window
            autoIt.WinActivate("Open");
//Path of the image /file to upload
            autoIt.Send("C:\\Users\\Dell\\Documents\\image1.jpg\\");  //Use double back slash
            Thread.Sleep(600);
            autoIt.Send("{Enter}");

Saturday, September 22, 2018

Mention what are the risk to be avoided while testing?


Some of the risks to be avoided are:
Missing deadlines
Unclear with the project requirements
Lossing customer’s trust
Exceeding the project budget
Maximum number of test cases failed

Mention what is the difference between Beta and Pilot testing?


Beta Testing: It is the testing of the product/system in user environment. All the end users will use the product and xcheck if it is working as per the given requirements. It is done after pilot testing is successful and the defects reported in pilot testing were fixed.

Pilot Testing: In this a group of end users will try the system prior to the deployment and will share their feedback on the basis of its performance. It is done in development environment.

Friday, September 21, 2018

What is the purpose of having a test plan document?


We create a test plan because it helps us to think through the efforts needed to validate the acceptability of a software product. It will help people outside the test group to understand the why and how of product validation. It describes the objectives, scope, approach and focus of the software testing effort.

When do you start and stop testing?

Testing should be start as early as possible. From the requirement gathering phase the testing should start.

Testing can be stopped if testing deadlines are met, completion of test case execution, management decision, etc. 

What is Entry Criteria, Exit Criteria and Suspension Criteria?


Entry Criteria: Criteria set to which the testing should begin and the criteria to which the testing could be stopped.  Example: All source code is unit tested, all hardware, software are in place, the test environment is set.

Exit Criteria:  Criteria that decide the completion or termination of the testing. Example: All test cases have been executed, deadlines reached

Suspension Criteria: The criteria to which the testing will be suspended. Example: If the team members report that there are 40% of test cases failed, you should suspend testing until the development team fixes all the failed cases.

What is Defect rejection ratio and Defect leakage ratio?


Both these ratios are used to determine the quality of test execution.
Defect rejection ratio: (No. of defects rejected/total no. of defects raised)*100
The defects that had no impact on the product quality.

Defect leakage ratio: (No. of defects missed/total no. of defects raised)*100

What is the difference between a Test Plan and Test Strategy?

Test Plan: It is a document that defines the scope, objective, approach on a software testing effort. It is carried out by the Test Manager or lead.

Test Strategy: It is a set of guidelines that explains test design and an approach to how the testing needs to be done. It is carried out by the Project Manager.

What is the process to create a Test Plan document?


There are various steps to create a Test Plan document:
1.       Analyze the product
2.       Design the test strategy
3.       Design the test objectives
4.       Define Test Criteria
5.       Resource Planning
6.       Plan Test Environment
7.       Schedule & Estimation
8.       Determine Test Deliverables

Ideally, who prepares the Test Plan document?


Test plan document is prepared by senior members, testing manager or test lead.

Saturday, September 15, 2018

Explain Requirement Traceability Matrix (RTM) in simple terms.


     
RTM is a matching between the test cases and the customer requirements. It is prepared before designing the test cases.

What is the process to write a manual test case?


   
Review all the project requirements in detail and based upon that identify all the test conditions or the main functionalities of the software.  Then the test cases are designed which includes the detailed description of the series of steps taken to check if the software is free of bug or not. Test cases are prioritized and are executed based upon their priority.

What is test scenario, test condition and test case?


     
Test scenario is the possible ways to test an application. It can be single or a group of test cases.

Test condition is a constraint that needs to be followed when testing an application. It can be a piece of functionality or anything you want to verify.

Testcase: It is a list of steps that need to be executed to validate the identified test conditions.

Explain the difference between an SDLC and STLC?


 SDLC: It is a systematic approach to develop a software. Requirements are gathered by the BA and reviewed by the developer. In design phase, the high level and low level designs of the software are met. The development of the application or the coding is done in development phase. The deployment of the application is done after passing.

STLC: It is a systematic approach to test a software. It is a part of SDLC. Requirements are reviewed by the testers. In design phase, test cases and test conditions are designed and which are executed in Execution phase. Detailed test cases are written in development phase. Deployment phase is the final stage in testing where testing is completed and reports are generated.