Pages

Wednesday, 19 September 2018

What is Automation Test Estimation? Estimation Template/Excel sheet representation of estimation sheet/interview qus for 5+ years of exp/Describe estimation format for client before starting design of test scripts?

Automation Test Estimation:

Estimation for automation is most important thing when u have more than 4 years of exp in testing.
So as we dont have any particular tool for this so many of us confused what could be standard format

In interview for exp automation tester this is a very imp aspect to know or learn, expected qus:
  •  What are automation estimation factors
  •  AutomationEstimationTemplate
  •  What are the standards should be used while preparing estimation

So to answer all those qus below I am sharing a very comprehensive and the best suitable standardized  AutomationEstimationTemplate:

Note: Don't refer the data













Wednesday, 8 August 2018

How to start your career with Automation?Step by step guide to know where to start and what are the area need to focus/want to learn automation/manual tester/fresher tips

There is a common question in everyone's mind who are just 1-2 years of experience or someone who has joined a mnc as a manual tester just to start their career.But they want to do something with automation or want to learn the technology and as all say to be a "Coder".

Below are some very important points to keep in mind when you try to shift your technology:

STEP-1:
Learn scripting and programming language:
 Don't focus on automation tools, coz tools will come and go but the design pattern and framework structure is common for almost all the tools in the market. So better to learn a OOPS language so that you can cope up with any tool or framework.

STEP-2: 
Linux/Unix:
Next step will be learning Linux/Unix OS. No one will say to learn Linux or Unix for automation but trust me if you want start your automation career then now a dayz and going forward all major technology will work on Ubuntu or Linux. So be well equipped with these, and if you don't know docker but you are very good with Ubuntu then they are going to hire you for sure.

STEP-3:
SQL/Database:
Third thing which is most important is learning database, you must think that it is only needed for database testing but automation means validation of data and when we talk about data then the first thing that comes to our mind is database. Learn SQL thoroughly so that you can cope up with the market efficiently.

STEP-4:
TOOL/Technology:
So now we are ready to select a automation tool which we want to learn. In market there are n number of tools and it is better to learn the tool which will be there in market for a longtime, so below I have mentioned some of the automation technology according to the priority:

1. Selenium webdriver
2. API Automation
3. Test Complete
4. UFT
5. Coded UI



So here I have given a brief idea, going further I will add individual topic on each technology.
 

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Wednesday, 1 August 2018

Explain testNG annotation in sequence with real time scenario?example of @After@Before in TestNG?selenium interview qus/testng

Explained TestNG annotations in sequence, very imp interview questions.

Execute the script and try to observe how @test @Method @Suite @Class works.

In the interview they may ask to tell how many time @test and @method will run. I have added the output after executing it to eclipse.As we have pass three pair of values in dataprovider so 3 times test script got executed.

public class NewTest {
  @Test(dataProvider = "dp")
  public void f(Integer n, String s) {
  System.out.println(n + s);
  }
  @BeforeMethod
  public void beforeMethod() {
  System.out.println("Beforemethod:");
  }
  @AfterMethod
  public void afterMethod() {
  System.out.println("Aftermethod:");
  }
  @DataProvider
  public Object[][] dp() {
    return new Object[][] {
      new Object[] { 1, "a" },
      new Object[] { 2, "b" },
      new Object[] { 0,"2test" }
    };
  }
  @BeforeClass
  public void beforeClass() {
  System.out.println("Beforeclass:");
  }

  @AfterClass
  public void afterClass() {
  System.out.println("AfterClass");
  }

  @BeforeTest
  public void beforeTest() {
  System.out.println("BeforeTest:");
  }

  @AfterTest
  public void afterTest() {
  System.out.println("AfterTest");
  }

  @BeforeSuite
  public void beforeSuite() {
  System.out.println("BeforeSuite");
  }

  @AfterSuite
  public void afterSuite() {
  System.out.println("AfterSuite");
  }

}



Output:

BeforeSuite
BeforeTest:
Beforeclass:
Beforemethod:
1a
Aftermethod:
Beforemethod:
2b
Aftermethod:
Beforemethod:
02test
Aftermethod:
AfterClass
AfterTest
PASSED: f(1, "a")
PASSED: f(2, "b")
PASSED: f(0, "2test")

===============================================
    Default test
    Tests run: 3, Failures: 0, Skips: 0
===============================================

AfterSuite

===============================================
Default suite
Total tests run: 3, Failures: 0, Skips: 0
===============================================

Monday, 30 July 2018

Prime Number with different approach, 1) Find prime number withing a range 2) Prime number using math.sqrt 3)Prime number using while loop ? Selenium webdriver experienced interview qus/Java /Prime Number qus/Most asked interview qus

 //PRIME Number within a range
public class PrimeNumber {

public static void main(String[] args) {
  // TODO Auto-generated method stub

  PrimeNumber p = new PrimeNumber();
  System.out.println("====method1========");
  p.isPrime_1(10,100);

  System.out.println("===================");

public void isPrime_1(int s1, int s2) {
         int  flag = 0, i, j;
         System.out.println ("The prime numbers in between the entered limits are :");
         for(i = s1; i <= s2; i++)
         {
             for( j = 2; j < i; j++)
             {
                 if(i % j == 0)
                 {
                     flag = 0;
                     break;
                 }
                 else
                 {
                     flag = 1;
                 }
             }
             if(flag == 1)
             {
                 System.out.println(i);
             }
         }
}

//PRIME Number using math.sqrt

public class PrimeNum {

   public static void main(String[] args) 
  {
       Scanner pnc = new Scanner(System.in);
       System.out.print("Enter a number : ");
       int n = pnc.nextInt();
       if (IsPrimeNumber(n)) 
      {
           System.out.println(n + " is a prime number");
       } else 
          {
           System.out.println(n + " is not a prime number");
          }
   }

   public static boolean IsPrimeNumber(int n) {
       if (n <= 1) 
      {
           return false;
       }
       for (int i = 2; i < Math.sqrt(n); i++) 
      {
           if (n % i == 0)
          {
               return false;
           }
       }
       return true;
   }
}

//PRIME number using while loop 

 public class PrimeNumberWhileLoop {

    public static void main(String[] args) {
         Scanner pn = new Scanner(System.in);
                       System.out.print("Enter a number : ");
                       int number = pn.nextInt();
int i = 2; boolean flag = false; while(i <= number/2) { // condition for not a prime number if(number % i == 0) { flag = true; break; } ++i; } if (!flag) System.out.println(number + " :is a prime number."); else System.out.println(number + " :is not a prime number."); } }