Sunday, November 15, 2020

Manual Testing Syllabus

 Manual Testing Syllabus

=======================

What is Project?

What is Product?

What is Quality?

What is Defects?

What is Testing?

What is kick of meeting?

PIN(Project initial node)?

Software Development Lifecycle(SDLC):-(V.V.I)

Test Methodology :-

1)Black box Testing

2)Grey box Testing

3)White box & glass

Levels Of testing

1)Unit level testing

2)Module level testing

3)Integration level testing

4)System level Testing

5)User acceptance level testing

Types of Environment

1)Single type architechire(stand alone)

2)Two Tier architechire

3)Three Tier architechture:-

4)N Tier architechture

Q)What is a Software Build?

Types of Testing

Smoke Testing

Sanity Testing

static testing

Stability Testing

dyanamic Testing

Compatibility Testing(suitable)

Alpha Testing

Beta Testing

Adhoc Testing

Reliability Testing

Retesting

Regression Testing

Security Testing

Authentication Testing

URL testing

Firewall Testing

Exploratory Testing

End to End Testing

Load Testing

Installation Testing

Non-functional Testing

Survivability

Scalability

Usability

Speed

Performance Testing

Types of Performance Testing.

1)Load testing

2)Stress testing

3)Endurance testing

4)Volume testing

5)Scalability testing.

6)Endurance Testing

What is funcational Testing?

Types of Functional testing are

================================

Unit Testing

Smoke Testing

Sanity Testing

Integration Testing

White box testing

Black Box testing

User Acceptance testing

Regression Testing.

Globalization Testing?

Localization Testing

Positive Testing

Negative Testing

Pilot Testing

Types of Model

===============

1)Waterfall Model

2)Prototype Model

3)Evoluting Model

4)Spiral Model

5)fish Model

6)V Model

7)Agile Model

8)Incremental Model.

eXtreme Programming (XP)?

Software Testing Lifecyscle(STLC)

=================================

It contains 6 phases:-

-------------------------

1)Test Planning

2)Test Design | Test development

3)Test Execution

4)Result Analysis

5)Bug Tracking and Reporting

6)Closer activity|Exit activity.

Guidines to understanding the FRS document:-

=============================================

Test Scenario:-

================

How to create a Test Scenario.

Test Case

==========

What is Test Case?

Types of Test cases :-

=======================

1)GUI Test cases

2)Funcational Test cases

3)Non-Funcational Test cases

Non Funcationality Test cases:-

a)Compatability Testing.

b)Performance Testing

c)Usability Testing

d)Installation Testing.

Guidlines for writing the positive test case:-

==============================================

Guidlines for writing the negative test cases:-

=================================================

Q)What is Test Design Technique

=================================

1)Boundry value Analysis

--------------------------

2)Equivalence Partition (EP)

3)Q)What is Traceability Matrix?(TM)

Q)What is RTM (Requirement Traceability Matrix)?

Requirement Traceability Matrix – Parameters include

=====================================================

1)Requirement ID

2)Requirement Type and Description

3)Trace to design specification

4)Unit test cases

5)Integration test cases

6)System test cases

7)User acceptance test cases

8)Trace to test script

How to create Requirement Traceability Matrix

=================================================

Test Execution

================

Result Analysis

================

Bug tracking & Reporting

=========================

1)What is Bug?

Q)What is Defect?

While reporting the bug to developer, your Bug Report should

contain the following information

==========================================================

Q)What is Defect life cycle?

Defect life cycle stages

=========================

Q)What is Priority?

Defect severity can be categorized into four class

=====================================================

Defect priority can be categorized into three class

======================================================

Bug Tracking tool

==================

BUGZILLA

============

Software Test Engineer Responsibilites:-

=========================================

Test lead Responsiblility

==========================

Quality Center

Course fee is 10000/ only 

Saturday, November 7, 2020

How to handle Dynamic table

 Q)How to handle Dynamic table and Create Re-usable method and add in framework.

package com.seleniumpractice;


import java.util.List;

import java.util.concurrent.TimeUnit;


import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.chrome.ChromeDriver;


import com.businesshelper.Helper;


public class Dyamictable extends Helper{


public static void main(String[] args) {

/*

System.setProperty("webdriver.chrome.driver","D:\\driver1016\\chromedriver.exe");

WebDriver driver=new ChromeDriver();

driver.get("https://www.redbus.in/");

driver.manage().window().maximize();

driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);

*/

Helper.launchApp();

driver.findElement(By.xpath("//button[contains(text(),'Search Buses')]/preceding::span[1]")).click();

Helper.selectDate(driver,"10");

/*

List<WebElement> list=driver.findElements(By.xpath("//table[@class='rb-monthTable first last']/tbody//td"));

for(int i=0;i<list.size();i++){

String strlist=list.get(i).getText();

System.out.println("strlist-->" + strlist);

if(strlist.equals("10")){

list.get(i).click();

break;

}

*/


}


}

=========================================================================

package com.businesshelper;


import java.util.List;


import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.WebElement;

import org.openqa.selenium.chrome.ChromeDriver;

import org.openqa.selenium.interactions.Actions;


public class Helper {

public static WebDriver driver;

public static String driverPath="D:\\driver1016\\chromedriver.exe";

public static String url="https://www.redbus.in/";

public static List<WebElement> listofCheckbox;

public static void launchApp(){

System.setProperty("webdriver.chrome.driver",driverPath);

driver=new ChromeDriver();

driver.get(url);

driver.manage().window().maximize();

}

public static boolean verifyisSeleted(WebElement ele){

boolean status= ele.isSelected();

if(status){

System.out.println("CheckBox is selected");

}

else{

System.out.println("CheckBox is not selected");

}

return status;

}

/*

public static void multipleCheckbox(){

listofCheckbox=driver.findElements(By.xpath("//input[@type='checkbox']"));

for(WebElement listele:listofCheckbox){

listele.click();

}

}

*/

public static boolean isDisplayedRadiobtn(WebElement ele){

boolean eleisisplaye=ele.isDisplayed();

if(eleisisplaye){

System.out.println("Radio Button is Displayed ");

}

else{

System.out.println("Radio Button is not Displayed ");

}

return eleisisplaye;

}

public static boolean isEnabledRadioButton(WebElement ele){

boolean eleisEnabled=ele.isEnabled(); 

if(eleisEnabled){

System.out.println("Radio Button is Enabled ");

}

else{

System.out.println("Radio Button is not Enabled");

}

return eleisEnabled;

}

public static void ClickWithActions(WebElement ele){

Actions act=new Actions(driver);

act.moveToElement(ele).click().perform();

}

public static void selectDate(WebDriver driver,String str){

List<WebElement> list=driver.findElements(By.xpath("//table[@class='rb-monthTable first last']/tbody//td"));

for(int i=0;i<list.size();i++){

String strlist=list.get(i).getText();

if(strlist.equals("10")){

list.get(i).click();

break;


}

}

}


}

====================================================================

Q) How to handle Dynamic table in Selenium


package Selenium.SeleniumTest;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

public class WebTable {

public static void main(String[] args) {
    System.setProperty("webdriver.chrome.driver","D:\\driver1016\\chromedriver.exe\\");
    WebDriver driver=new ChromeDriver();
    driver.get("https://www.w3schools.com/html/html_tables.asp");
  //*[@id="customers"]/tbody/tr[2]/td[1]
  //*[@id="customers"]/tbody/tr[3]/td[1]
  //*[@id="customers"]/tbody/tr[4]/td[1]
  //*[@id="customers"]/tbody/tr[6]/td[1]
    
  //*[@id="customers"]/tbody/tr[2]/td[2]
  //*[@id="customers"]/tbody/tr[3]/td[2]
  //*[@id="customers"]/tbody/tr[4]/td[2]
  //*[@id="customers"]/tbody/tr[5]/td[2]
  //*[@id="customers"]/tbody/tr[2]/td[3]
    
    String beforeXpath_compnay="//*[@id='customers']/tbody/tr[";
    String afterXpath_company="]/td[1]";
    
    String beforeXpath_contact="//*[@id='customers']/tbody/tr[";
    String afterXpath_contact="]/td[2]";
    
    String beforeXpath_country="//*[@id='customers']/tbody/tr[";
    String afterXpath_country="]//td[3]";
    
    List<WebElement> rows=driver.findElements(By.xpath("//table[@id='customers']//tr"));
    System.out.println("Total number of rows = " + (rows.size()-1));
     int rowCount=rows.size();
     
     //Xls_Reader reader=new XlsReader();
     
     
    for(int i=2;i<=rowCount;i++){
    String actualXpath_comapnayName=beforeXpath_compnay+i+afterXpath_company;
    String companyName=driver.findElement(By.xpath(actualXpath_comapnayName)).getText();
    System.out.println(companyName);
   
    String actualXpathcoustomer=beforeXpath_contact+i+afterXpath_contact;
    String contactName=driver.findElement(By.xpath(actualXpathcoustomer)).getText();
    System.out.println(contactName);
   
    String actualXpath_country=beforeXpath_country+i+afterXpath_country;
    String countryName=driver.findElement(By.xpath(actualXpath_country)).getText();
    System.out.println(countryName);
   
    }
}

}






Q) How To Find Duplicate Characters In A String In Java?

Step1:- Creating a HashMap containing char as key and it's occurrences as value. Step2:- Converting given string to char array. Step3:- ...