Role of a Tester in Scrum - Agile Process


Role of a tester in Release and Sprint Planning:

•Understand user stories and acceptance criteria
•User stories get clarified from the respective stakeholders where there is insufficient information
•High level test strategy has to be decided for whole release
•All the risk that might occurs at the time of release needs to be noted or documented
•Number of testing types need to be decided and discussed
•Estimate time for each user story test case creation and execution
•Break user stories into different testing tasks
•Decide each story test coverage
•Acceptance criteria for user stories needs to be defined
Understand and plan for user stories automation and support various levels of testing 
•Customer satisfaction through delivery of high-quality software which is earlier and continuous is highest priority •Engagement is early during the project from sprint planning but the QA activities are same •Business people, developers, and testers must work together throughout the project •Discuss and understand each user story with stakeholders and then decide on acceptance criteria for the same •Welcome changing requirements. Tester needs to be adaptable to any changes •Define activities for themselves to estimate time, updating test cases as and when changes appear, complete testing within the sprint time etc. •Story level estimation needs to be done and time needs to be assigned for each story •Test Cases needs to be developed as per the story acceptance criteria and needs to be change whenever there is a change in story •Deliver high quality software iteratively from a couple of weeks to a couple of months •QA needs to track the progress of testing on a daily basis with continuous feedback

Square Series


package exam;

public class Program4 {
 public static void main(String[] args) {
  int n=5;
  for(int i=1;i<=n;i++) {
   System.out.print(" " +(i*i));
  }
 }

}



o/p:-
 1 4 9 16 25




Cube Series


package exam;

public class Program3 {
 public static void main(String[] args) {
  int n=5;
  for(int i=1;i<=n;i++) {
   System.out.print(" " +(i*i*i));
  }
 }

}


o/p:-
 1 8 27 64 125




ODD Number Series



package exam;

public class Program2 {
 public static void main(String[] args) {
  int n=5;
  for(int i=1;i<=n;i++) {
   System.out.print(" " +(2*i-1));
  }
 }

}


o/p:-
 1 3 5 7 9




Sum number series



package exam;

public class Program1 {
 public static void main(String[] args) {
  int n=5;
  for(int i=1;i<=n;i++) {
   System.out.print(" " +(2*i));
  }
 }

}


o/p:-
 2 4 6 8 10




Sum of Digits





package exam;

import java.util.Scanner;

public class SumofDigits {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int r,temp, s=0;
  System.out.println("Enter the number");
  int n=sc.nextInt();
  temp=n;
  while(n>0) {
   //n=n%10;
   
   s=s+n%10;
   n=n/10;
   
  }
  System.out.println(s);
  
}
}


o/p:-
Enter the number
456
15




Reverse String




package exam;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ReverseString {
 public static void main(String[] args) throws IOException {
  BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
  System.out.println("Enter the string");
  String org=reader.readLine();
  System.out.println("Original String is " +org);
  String rev="";
  
  for(int i=org.length()-1;i>=0;i--) {
   rev=rev+org.charAt(i);
  }
  System.out.println("Reverse string is-"+rev);
  
 }

}


o/p:-
Enter the string
vaibhav
Original String is vaibhav
Reverse string is-vahbiav



Is Prime Number?




//Prime Number  Print 
package exam;

import java.util.Scanner;

public class PrimeNumber {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int flag = 0;
  System.out.println("Enter the number");
  int n=sc.nextInt();
  int mid=n/2;
  if(n==0||n==1) {
   System.out.println("Not Prime");
  }else {
   
   for(int i=2;i<=mid;i++) {
    if(n%i==0) {
     System.out.println("Not Prime");
     flag= 1;
     break;
    }
   }
   if(flag==0) {
    System.out.println(n +" Number is Prime");
   }
  }
  
}
}


o/p:-
Enter the number
5
5 Number is Prime




Is Number Palindrome?





package exam;

import java.util.Scanner;

public class NumberPalindrome {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int r,temp, s=0;
  System.out.println("Enter the number");
  int n=sc.nextInt();
  temp=n;
  while(n>0) {
   r=n%10;
   s=(s*10)+r;
   n=n/10;
  }
  System.out.println(s);
  if(temp==s) {
   System.out.println("number is palindrome");
  }else {
   System.out.println("number is not palindrome");
  }
}
}


o/p:-
Enter the number
153
351
number is not palindrome



Fibbonaci Series



package exam;

public class FibbonaciSeries {
 public static void main(String[] args) {
  int n1=0,n2=1;
  int n3,i,count=10;
  System.out.print(n1+"  "+n2);
  for(i=2;i<=count;i++) {
   n3=n1+n2;
   System.out.print(" "+n3);
   n1=n2;
   n2=n3;
  }
 }

}


o/p:-
0  1 1 2 3 5 8 13 21 34 55



Factorial Number





//Factorial  Print 
package exam;

import java.util.Scanner;

public class Factorial {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int fact=1;
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i<=n;i++) {
   fact=fact*i;
  }
  System.out.println("Factorial of this number is " +fact);
}
}

o/p:-
Enter the number
5
Factorial of this number is 120



Is Armstrong Number?




package exam;

import java.util.Scanner;

public class ArmstrongNumber {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int r,temp, s=0;
  System.out.println("Enter the number");
  int n=sc.nextInt();
  temp=n;
  while(n>0) {
   r=n%10;
   n=n/10;
   s=s+(r*r*r);
   
  }
 
  if(temp==s) {
   System.out.println("number is Armstrong");
  }else {
   System.out.println("number is not Armstrong");
  }
}
}

o/p:-
Enter the number
5
number is not Armstrong


Pattern 8


We can print the following Pattern 
1) 
    1             //print (char)(j+64) and i
   A B 
  3 3 3 
 A B C D 

2)
    1            //print (char)(j+64) and j
   A B 
  1 2 3 
 A B C D 

3)
    1            //print (char)(i+64) and i
   B B 
  3 3 3 
 D D D D 

4)
    1          //print (char)(i+64) and j
   B B 
  1 2 3 
 D D D D 




package demo;

import java.util.Scanner;

public class Pattern9 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();

  for(int i=1;i=i;k--) {
    System.out.print(" ");
   }
   for(int j=1;j<=i;j++) {
    //System.out.print("* ");
    if(i%2 == 0) {
     System.out.print((char)(i+64)+ " ");
    }
    else
    {
     System.out.print(j+ " ");
    }
   }
   System.out.println();
  }
 }
}
O/P:-
Enter the number
5
    1 
   A B 
  3 3 3 
 A B C D 




Pattern 7


We can print the following Pattern 
1) 
    A      //print (char)(j+64)  and i
   2 2 
  A B C 
 4 4 4 4 

2) 
    A       //print (char)(j+64)  and j
   1 2 
  A B C 
 1 2 3 4 

3) 
    A         //print (char)(i+64)  and i
   2 2 
  C C C 
 4 4 4 4 

4)
    A           //print (char)(i+64)  and j       
   1 2 
  C C C 
 1 2 3 4


package demo;

import java.util.Scanner;

public class Pattern8 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i=i;k--) {
    System.out.print(" ");
   }
   for(int j=1;j<=i;j++) {
    //System.out.print("* ");
    if(i%2 != 0) {
     System.out.print((char)(j+64)+ " ");
    }
    else
    {
     System.out.print(i+ " ");
    }
   }
   System.out.println();
  }
 }
}
O/P:-
Enter the number
5
    A 
   2 2 
  A B C 
 4 4 4 4 



pattern 6


We can print the following Pattern 
1) 
5 5 5 5 5         //print i
4 4 4 4 
3 3 3 
2 2 
1

2)
5 4 3 2 1          //print j
4 3 2 1 
3 2 1 
2 1 
1  

package demo;

import java.util.Scanner;

public class Pattern7 {
 public static void main(String[] args) 
    {
        Scanner sc = new Scanner(System.in);
         
        //Taking rows value from the user
         
        System.out.println("How many rows you want in this pattern?");
         
        int rows = sc.nextInt();
         
        System.out.println("Here is your pattern....!!!");
         
        for (int i = rows; i >= 1; i--) 
        {
            for (int j = i; j >= 1; j--)
            {
               // System.out.print(j+" ");
                System.out.print(i+" ");
            }
             
            System.out.println();
        }
         
        //Closing the resources
         
        sc.close();
    }
}

O/P:-
5
Here is your pattern....!!!
5 4 3 2 1 
4 3 2 1 
3 2 1 
2 1 
1 
 


Pattern 5


We can print the following Pattern 
1)
* * * * *       //print *
* * * * * 
* * * * * 
* * * * * 
* * * * * 

2)
1 1 1 1 1        //print i
2 2 2 2 2 
3 3 3 3 3 
4 4 4 4 4 
5 5 5 5 5 

3)
1 2 3 4 5        //print j
1 2 3 4 5 
1 2 3 4 5 
1 2 3 4 5 
1 2 3 4 5 

4)
A A A A A         //(char)(i+64)
B B B B B 
C C C C C 
D D D D D 
E E E E E 


5)
A B C D E       //(char)(j+64)
A B C D E 
A B C D E 
A B C D E 
A B C D E 


package demo;

import java.util.Scanner;

public class Pattern5 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i<=n;i++) {
   for(int j=1;j<=n;j++ ) {
    //System.out.print("* ");
    //System.out.print(i+ "5 ");
    //System.out.print(j+ " ");
    //System.out.print((char)(i+64)+ " ");
    System.out.print((char)(j+64)+ " ");
   }
   System.out.println();
    
   }
 } 
 }
O/P:-
Enter the number
5
A B C D E 
A B C D E 
A B C D E 
A B C D E 
A B C D E 

 


Pattern 4


We can print the following Pattern 
1)
* * * * *              //print *
* * * * 
* * * 
* * 
* 

2)
1 1 1 1 1       //print i
2 2 2 2 
3 3 3 
4 4 
5

3)
5 4 3 2 1        //print j
5 4 3 2 
5 4 3 
5 4 
5  

4)
A A A A A     //(char)(i+64)
B B B B 
C C C 
D D 
E 

5)
E D C B A      //(char)(j+64)
E D C B 
E D C 
E D 
E 

package demo;

import java.util.Scanner;

public class Pattern4 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i<=n;i++) {
   for(int j=5;j>=i;j-- ) {
    //System.out.print("* ");
    //System.out.print(i+ "5 ");
    //System.out.print(j+ " ");
    //System.out.print((char)(i+64)+ " ");
    System.out.print((char)(j+64)+ " ");
   }
   System.out.println();
    
   }
 } 
 }
O/P:-
Enter the number
5
E D C B A 
E D C B 
E D C 
E D 
E 
 


Pattern 3


We can print the following Pattern 
1)
A                    //print (char)(j+64)
A B 
A B C 
A B C D 
A B C D E

2)
A                  //print (char)(i+64)
B B 
C C C 
D D D D 
E E E E E 

3)
*                 //print *
* * 
* * * 
* * * * 
* * * * * 

4)
1                     //Print i
2 2 
3 3 3 
4 4 4 4 
5 5 5 5 5 

5)
1                  //print j
1 2 
1 2 3 
1 2 3 4 
1 2 3 4 5 


package demo;

import java.util.Scanner;

public class Pattern3 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i<=n;i++) {
   for(int j=1;j<=i;j++ ) {
    //System.out.print("* ");
    //System.out.print(i+ "5 ");
    //System.out.print(j+ " ");
    //System.out.print((char)(i+64)+ " ");
    System.out.print((char)(j+64)+ " ");
   }
   System.out.println();
    
   }
 } 
 }

O/P:-
Enter the number
5
A 
A B 
A B C 
A B C D 
A B C D E  


Pattern 2


We can print the following Pattern 
1)
* * * * *           //print *
 * * * * 
  * * * 
   * * 
    * 

2)
5 4 3 2 1    //Print j
 4 3 2 1 
  3 2 1 
   2 1 
    1 

3)
5 5 5 5 5  //Print i
 4 4 4 4 
  3 3 3 
   2 2 
    1 



package demo;

import java.util.Scanner;

public class Pattern2 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=n;i>=1;i--) {
   for(int k=n-1;k>=i;k--) {
    System.out.print(" ");
   }
   for(int j=i;j>=1;j--) {
    System.out.print("* ");
    //System.out.print(j+ " ");
    //System.out.print(i+ " ");
   }
   System.out.println();
  }
 }
}


O/P:-
Enter the number
5
5 4 3 2 1 
 4 3 2 1 
  3 2 1 
   2 1 
    1 


Pattern 1


We can print the following Pattern 
1)
    *               //Print *        
   * * 
  * * * 
 * * * * 

2) 
    1              //Print J
   1 2 
  1 2 3 
 1 2 3 4 

3)   
    1               //print i
   2 2 
  3 3 3 
 4 4 4 4 

package demo;

import java.util.Scanner;

public class Pattern1 {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  
  System.out.println("Enter the number");
  int n=sc.nextInt();
  for(int i=1;i=i;k--) {
    System.out.print(" ");
   }
   for(int j=1;j<=i;j++) {
    System.out.print("* ");  
    //System.out.print(j+ " "); 
    //System.out.print(i+ " ")
   }
   System.out.println();
  }
 }
}


O/P:-
Enter the number
5
    1 
   1 2 
  1 2 3 
 1 2 3 4 


How Much Java you need to learn for a good Selenium Scripting ?

1)OOP’s concept – Class, Objects Polymorphism, Inheritance and Encapsulation
2)Java Programming essentials- Object Instances, method overloading/overriding concepts and packages
3)Control Statements – While, do-While, Switch, If statements – This will help us in writing the scripts 
  for a multiple scenario statements and decision making scenarios.
4)Looping statements – This will help us in scenarios like, iterating through a large table to find
  a record that you want and Running the same test for multiple number of times.
5)Arrays Concepts – This will help us in having some set of datas of same type in a static way.
6)Threads and MultiThreading Concepts – This will help us in making run our scripts in different
  threads that will help us in achieving better performance.
7)Java Collections Framework – ArrayLists and HashMaps – This will help us in maintaining a 
collection of data’s. Particularly useful for scenarios where you need to compare the data from Web app
  UI with the DB. [OR] From UI to another UI
8)File Streams – This will be helpful in externalization of data through CSV, Excel or Java Properties file.