Software Automation Tester Interview Questions for 4 years of Experience
- Tech Mahindra:
1.Get input from users and check the given string is palindrome or not?
2.Write code for POST method using Rest assured
2. ITC InfoTech:
1.Output for given program:
public class A{
public void methodA(){
System.out.println("Inside Class A");
}
}
public class B extends A{
public void methodA(){
System.out.println("Inside Class B");
}
}
public class MyClass {
public static void main(String args[]) {
A obj = new B();
obj.methodA();
}
}
2.Find the 4th smallest number in given array below
int arr[] = {7,9,6,5,3,1,2};
3.Launch google.co.in and Store all components name as key and their href link as a value in Map.
Condition:only broken links should be stored in the map instead of all links
4.Ways to press Enter
Hint:”name\n” && keys.Enter && robot.keypress(VK_ENTER)
5.JDBC Connection syntax
6.Create Payload json and pass it as payload in PUT operation.
Hint:using JSONObject create json
7.Write script for Create Json for below code:
{
"a":{
"b":[
{"c":2},
{"c":3}
]
}
}
3. HCL:
1.Write a Fibonacci program
2.String Reverse
4. Altimetrik
- Check code and say the output for below program
public class Test{
Test() {
super();
this();
System.out.println("Test class object is created");
}
public static void main(String []args){
Test t = new Test();
}
}
2.How do you handle alert exception?
3.Script for creating json?
{
"employee": {
"name": "sonoo",
"salary": 56000,
"married": true
}
}
4.Syntax for Serialisation and Deserialisation..
Hint:Object mapper
5.API –POST method syntax
5. RenCaTA
1.output for below
int a=2;
int b=2;
System.out.println("c"+2+2);
System.out.println("c"+a+b);
2.Print only duplicate word in String "india india pakistan pakistan china";
console:india Pakistan
3.write script for Creating 2D array and fetch only diagonal values
6. MACROSOFT
1.join all string
String s1="abcd";
String s2="efgh";
String s3="xyz";
7. Thinkpalm Technologies
1.Maven project structure
2.script for table creation and updating table values in SQL
3.API POST script
8. Qualitrix:
1.Script for Dropdown and methods available
2.Syntax for implicit wait and explicit wait
3.Script for Javascript for scrolldown
4.Takes screenshot
5.Letter count in String
6.Excel read value script
9. L &T infotech:
1.Remove numbers in the String and reverse it
2.Entryset in Map
3.javascript for scroll down
4.Suite creation and script for run methods parallelly
5.Write Feature file
6.Compare and remove duplicate values in 2nd array
int[] ar1={22,32,2,15,27};
int[] ar2={20,2,21,5,20};
10. Kanini Technologies:
1.Diff b/w equals,equalsIgnoreCase in literal & non literal string
2.Methods in String
3.SQL Inner join script
11. Accion Labs:
1.Syntax for GET method in API
2.Deserialisation of Response
3.Compare and remove duplicate values in 2nd array
int[] ar1={5,7,4,3,1};
int[] ar2={5,7,4,3,2,0};
4.Window Handling Script
5.IRetryAnalyser and IAnnotationTransformer syntax
12. Vrize:
1.Window handling script
2.Frame Handling Script
13. GreenBots:
1.Print only duplicate characters in String =”ayyappan”
2.Create two list and value integer values..Then print values from the list in ascending order.
- Other Questions AskedK
- Java
- Explain OOPS concept/OOPS concept used in your project
- Method overloading/overriding
- Constructor overloading and constructor chaining
- Main method overloading ?????
- Explain main method
- Inheritance explain
- Inheritance uses in your framework
- Encapsulation(Pojo concept for converting java object into json object)
- This(),super() difference and uses && what will happen if it used in same constructor
- String methods,Stringbuffer and stringbuilder difference
- Literal,Non literal,mutable,immutable string
- Access specifier and access modifier
- Use of singleton
- Scanner
- Abstraction
- Interface uses and its properties
- List,Set,Map
- Map methods and how to iterate map,fetch keys,fetch values and remaining methods
- Array List and linked list difference
- Arraylist properties like what are all the interfaces it implement and its uses
- Hashmap and hash set difference
- Hashmap and Hashtable difference
- Programs asked:
- String reverse
- String occurance
- Character occurance
- Two arrays compare and fetch duplicate values
- Fibonacci series
- Selenium
- Ways to launch browser
- Selenium 4 features
- Alert handle
- Window handle
- Authentication popup handle
- Window based popup???
- Script for Wait(implicit and explicit wait)
- Difference between implicit and explicit wait
- Methods in WebDriver interface
- Methods in WebElement interface
- Use of set in selenium(getWindowHandles)
- Types of locators
- Difference b/w xpath and css selector
- Which is faster locator
- Use of javascriptexecutor and syntax
- Javascriptexecutor syntax for scrolldown,scrollup,refresh,click.
- Difference b/w navigate and get method
- Pagination
- Select particular date in calendar
- WebTable for fetching headers,row count,particular cell value
- ToolTip
- Upload & download with verify files
- Programs
- Broken Links
- Broken image
- Xpath
- Write general syntax of xpath
- Write xpath for particulat column in particular table
- For dynamic elements
- Use of parent,child,ancestor and other different types
- Open senior citizen tax rate web page in bankbazaar.com and get third table third colum values only
- Try to get 4th value in 3rd column of one table based on 4th value in 2nd column of that table.
- Window handle script
- Java
- Testng
- Annotation execution order
- Disable test case by Enabled=false
- Invocation count
- How to rerun failed testcases(default & with listeners)
- Parallel execution
- Advantages of Testng over junit
- How to run/skip particular test cases(Grouping)
- How to pass parameters
- How suite works(run particular classes,methods,Thread count)
- Html reports
- Handle exception through annotations
- Timeouts
- Use of Listeners
- Jira
- Backlogs/sprint backlogs how it works and entire process flow
- Bug raise/Bug lifecycle
- Testcase management through plugins
- Agile methodology
- Scrum ceramonies
- Scrum Values
- Framework(Maven)
- Data Driven
- Script for writing excel file
- Script for reading excel file
- Script for reading Property file
- Script for reading JSON File
- Script for writing JSON file
- Scirpt for writing and reading general txt files
- Maven
- Maven lifecycle
- Maven features
- POM
- Findby,findbys,findall,cachelookup
- Encapsulation concept and singleton concept in POM
- Data Driven
- Cucumber
- Explain entire Framework
- Cucumber options
- Use of tags
- Use of hooks
- How to rerun failed scenarios
- Scenario and scenario outline difference
- Use examples keyword
- Difference between examples and Data Table concept
- Feature file write
- Runner class,Step def,hooks class
- Tagged hooks
- Report generation
- Manual Testing
- Why Automation over Manual Testing
- Testing Techniques
- Smoke vs sanity
- Regression vs sanity
- RTM
- Agile vs Waterfall
- SDLC
- STLC
- Bug life cycle
- Write one testcase
- Api Testing
- Why automation over manual(Postman)
- Http methods
- Status codes
- Different authentications
- Difference between authentication and authorization
- Write script for GET,POST,PUT,DELETE
- Multiple requestspecification possible????
- Rest assured different validation in jsonpath validation,scehma validation,serialization,deserialisation of response
- Object mapper or Gson
- SQL
- Joints
- SQL for Fetch records from table
- Table creation and insert values
- JDBC
- GitHub
- Code for Push,pull,switch branch,create branch
- Jenkins(Continuous integration)
- How to schedule Test case run
- Plugins
- Configuration
- Click Below to Download the Entire Document

Comments
Post a Comment