# Test Automation Interview Questions

Showing Questions 1 - 20 of 161 Questions
First | Prev | Next | Last Page
Sort by:
|
•

#### Write code to output the no. of times each number appears in two unsorted arrays

Given two strings of unsorted integers write code to output the no. of times each number appears in both arrays. In the sample below number 2 appears 3 times

Sample Arrays:
array #1 [2,21,4,56,12,10,8,2,12,10,21]
aray #2 [12,8,2,10,56,12,8,8,12,4,12]

#### Shabana Khan

• May 18th, 2020

2 --> 3 21 --> 2 4 --> 2 56 --> 2 12 --> 6 10 --> 3 8 --> 4"java public class CountElementsInBothArrays { public static void main(String[] args) { int num1[]= new int[...

#### Rita

• May 10th, 2018

Write code to output the no. of times each number appears in two unsorted arrays"java public class ArrayCountRepNo { public static void main(String args[]) { int[] num1 = { 2,...

•

#### VBscript Sub Procedure

You can write Function procedure to return value and also you can write function procedure without returning value (if your function not returning any value it works like sub procedure) Then what is necessity of Sub procedure concept in VBScript when function procedure alone can be used for both returning value and non returning value?

•

#### How to find total rows in a paginated web table ?

I am working on automating a .NET app using QTP 11.0. The app has a webtable which is paginated showing 30 rows per page.

How do I get the total row?

#### sourabh

• Nov 19th, 2017

Get Matching Xpath Count Use this keyword in Robot

#### Khyatisehgal

• Sep 22nd, 2015

Selenium can do this. May be this can help."java package readingTable; import java.util.Iterator; import java.util.List; import org.junit.After; import org.junit.Before; i...

•

#### Take screenshot while highlighting the field during runtime

Hi All,

Is there any way to acheive this, I want to take screenshot while the fields are highlighted in a Webbrowser.

I am able to highlight but not much of success while highlighting the field

Thanks

#### preet

• Sep 20th, 2017

No way to do it in webDriver
you can do this in javascriptExecutor
if (driver instanceof JavascriptExecutor) {
((JavascriptExecutor)driver).executeScript("arguments[0].style.border=3px solid red", elem);
}

•

#### Generating reports in selenium

I was asked how do u generate reports in selenium ???

#### preet

• Sep 20th, 2017

Use third party ExtentReport jar files

• Jul 31st, 2017

With help of TestNG, we can generate Report through index.xml file

•

#### Image Comparison Feature in any Test Automation Tool

Do any test automation tool contain the Image comparing feature?

#### Avinash

• Jul 15th, 2017

Sikuli does image comparison

#### Walter

• Feb 28th, 2017

We tried to do so in combining with sikuli and ffmpeg.
https://github.com/Mozilla-TWQA/Hasal

I think you should be able to implement it yourself. If you want to check if some image exists in the screen, you may try just sikuli. (Selenium: no)

•

#### Identifying HTML Elements with same name

In an HTML page, if there are three checkboxes and all are having same names internally and externally, then while recording how it would be distinguished?

#### Komal

• Jul 13th, 2017

In such cases mostly there will be index attribute that will associated with the checkbox. Recorder will record using that. Or they can also be identified using the parent table ID and then using column numbers

#### Khyatisehgal

• Sep 22nd, 2015

There are different ways which can be applied to such cases like:- 1. Siblings identification where in you can put index, location, etc, Best way is to inspect the element with firebug(plugin of Fir...

•

#### Selenium Webdriver Program

Write a program in Selenium webdriver to check the current page number by total number of pages visible at the bottom of each page in an application. Assume there are 100 pages. Ex: 10/100, 11/100 etc.

#### Gaurav.khurana

• Jun 29th, 2017

// This program prints 3/75 3 is the current page and 75 is the last //we just did gettext for both elements and printed import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; imp...

#### Guru

• Sep 13th, 2016

String str=driver.findElement(By.id("someid")).getText();
String arr[]=str.split("/");
System.out.println("The current page number is "+arr[0]);

•

#### Meena

• Jun 11th, 2017

In automation, batch is to run the test scripts one by one serially. And parallel is running all the test scripts at a same time.. Please correct me if I'm wrong.

#### Sanjay

• Mar 9th, 2015

Batch processing is the execution of a series of programs ("jobs") on a computer without manual intervention. Jobs are set up so they can be run to completion without human interaction. All input para...

•

#### Suma

• May 10th, 2017

Analyze the Application -> select the tool -> identify the scenarios -> design /record the scripts
-> Modify test scripts -> Run the test scripts -> Reporting the defects

#### deep25kotwal

• Oct 9th, 2015

1) Automation Feasibility Study AUT automation feasibility Test Case automation feasibility Tool feasibility 2) Test Strategy Design about Automation Framework Schedule, Number of resources,Defining ...

•

#### Identify Automation Test Case

What are the Types of Test cases you are automated in Web application. How will you identify automation test case?

#### Mayank Shabani

• Dec 21st, 2016

Automation in preferred in following cases

Smoke and Sanity Tests
Test with multiple data set
Regression test cases
Usually, the decision is based on the ROI (Return on Investment)

•

#### Error, Defect, Failure

What are the differences between the terms Error, Defect and failure?

#### Nishith

• Sep 14th, 2016

Error: You provide the wrong information and do now receive the expected result, it is an error.

Failure: If the resulting output does not meet the requirements then it is a failure.

Defect: Even after giving the right information you are not able to get through the page, then it is a defect.

#### sathish

• Aug 18th, 2016

Error: Any mistakes done at code level failure. If the overall software development deviates from the requirements its called as failure.

These are inter-dependent.

•

#### qptopm

• Jun 29th, 2016

Short Answer is No. Next thing you need to understand is difference between Manual Testing and Automation Testing. Manual testing means testing a product/app/website or anything that needs to be test...

#### Indrajeet Prajapati

• Sep 27th, 2015

Automation testing is not a replacement for manual testing its just a continuation for manual testing. Because initially every application will be tested manually once the application has come to a stable state then only it is suggested to do automation testing.

•

#### Can we perform the test of single application at the same time using different tools on the same machine?

• Jul 21st, 2005

No. The Testing Tools will be in the ambiguity to determine which browser is opened by which tool.

#### mithun

• Apr 22nd, 2016

Yes, we can check the application using different tools at the same time at the same machine. consider eg as we can check the broken links of any application via using the different online broken li...

#### Ajay

• Jul 21st, 2005

No. The Testing Tools will be in the ambiguity to determine which browser is opened by which tool.

Showing Questions 1 - 20 of 161 Questions
First | Prev | Next | Last Page
Sort by:
|