Selenium common interview questions and answers

1. How do you test with Selenium?

Selenium+Maven+TestNG+Jekins

2. What problems do you often encounter in the test?

This common problem, such as positioning,

3. How to solve the problem?

Think first, then Baidu, considering network speed, computer configuration and other reasons, this question mainly focuses on problem-solving ability and thinking.

4. How does Selenium work?

Can be explained with pictures. The script starts the driver, then starts the browser as a remote server, executes the script to send the request, the server parses the request and makes corresponding operations, and feeds back to the client (script).

5. Common positioning methods?

Common 8 major positioning (id/name/tagName/classname/linkText/PatrilLinkText/Xpath/cssselector) + level and form.

6. How many ways to upload pictures?

Such as sendkeys, using AutoIT tools to achieve

7. How to deal with dynamic elements?

Locate with Xpath

8. How to automate test cases?

Generally derived from the smoke test test

9. How did you develop the test framework?

Selenium+Maven+TestNG+Jekins

10. What is the purpose of automated testing?
   a. Used for regression b. Used to monitor system stability c. Improve work efficiency

11. How does the PO model work?
pageObject : The page layer, the operation layer, and the business layer are assembled into a case

12. How to judge whether the case is passed?

Assert, compare with expected result

13. How many cases do you have in your project and how is the pass rate?

According to the actual answer, there are thousands, usually about 70-80%.

14. What is the principle of failure screenshots?

Use monitoring to rewrite the failure method of TestNG to take screenshots.

15. Where does the report come from and what are the main statistics?

The report is generated by the execution of test cases, such as TestNG, and mainly counts the success and failure rates, screenshots and records.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325050362&siteId=291194637