Sunday, October 31, 2021

UST Global Interview Question for Automation Test engineer (2 to 5 year Experience 2021)

1)Tell me about your roles and responsibilities in your current project. 

2) Which framework you have used. Can you explain. 

3) Which built tools do u have used and explain maven life cycle. 

Ans:- 

 mvn clean: Cleans the project and removes all files generated by the previous build.

 mvn compile: Compiles source code of the project.

 mvn test-compile: Compiles the test source code.

 mvn test: Runs tests for the project.

 mvn package: Creates JAR or WAR file for the project to convert it into a distributable format.

 mvn install: Deploys the packaged JAR/ WAR file to the local repository.

 mvn deploy: Copies the packaged JAR/ WAR file to the remote repository after compiling, running tests and building the project. 4) Have you used Git. What conflict and how to resolve. 

Ans;- A merge conflict is an event that takes place when Git is unable to automatically resolve differences in code between two commits. Git can merge the changes automatically only if the commits are on different lines or branches.

       https://stackoverflow.com/questions/161813/how-to-resolve-merge-conflicts-in-a-git-repository

5) What is Head command. 

Ans:- The term HEAD refers to the current commit you are viewing.

6) What is POM & What is page factory. 

7) What is the difference between Absolute Xpath and Relative Xpath. 

8)What is Fluent Wait? 

9) What is javaScriptExecuter ?

10) How to enter value in text fields without Sendkeys 

Ans:- driver.get("http://www.qajudge.com/"); WebElement cssValue= driver.findElement(By.xpath(".//*[@id='s']")); JavascriptExecutor jse = (JavascriptExecutor) driver; jse.executeScript("document.getElementById('s').value='Virender Testing sending'");

https://stackoverflow.com/questions/26955263/is-there-any-other-waynot-sendkeys-to-enter-text-into-textbox-using-selenium-w

11) What is default the constructor and parameterize constructor. 

12) WAP to find duplicate char in String. 

13) Why java is not purely oop. 

No comments:

Post a Comment

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:- ...