[Edit, Test and Edit] Automated Test Interview Must Be Back (Part 1)

1. Will you encapsulate an automated test framework?
This is the most frequently asked, and many companies even write it directly in their recruitment requirements.
The main core framework of the automation framework is the layered + PO mode: they are: the basic packaging layer BasePage, the PO page object layer, and the TestCase test case layer. Then add log processing module, ini configuration file reading module, unittest+ddt data drive module, jenkins continuous integration mode.
2. How to implement and promote automated testing in the company?
①The project team investigated and selected automation tools and held a meeting to demonstrate demo cases. We mainly demonstrated selenium and robotframework.
②Build an automated testing framework and gradually implement automation in the project.
③Fix the automated process and framework of the project into a document
④Promote it to other project groups in the company.
3. Please describe the automated testing process?
①Write automated test plan
②Design automated test cases
③Write automated test framework and scripts
④Debug and maintain scripts
⑤Unattended testing
⑥Post script maintenance (add use cases, develop updated versions)
4. How to write automated test cases? You can choose one of the following answers:
①The use case is designed by the automated test engineer. Generally, the basic business process is the main at the beginning (login-complete a business-logout)
②Select from the system test case or by the business engineer Provide
5. The execution strategy of the automated test in the previous project?
The previous project was executed regularly, and the execution time was set at 12 o'clock in the evening. After the execution was completed, an email notification would be sent automatically.
6. Are there many bugs found in the automated testing?
Not much, because the previous project team used the basic functions that have been tested to automate scripting and perform automated tests in subsequent versions. It is mainly to ensure that the functions that have been tested have no problems after the new version is updated.
7. What do you think is the value of automated testing? Why does your company do automated testing?
After citing automated testing, it can replace a lot of tedious regression testing work, free business testers, and allow business testers to focus on complex business function modules. Automated testing generally automates stable functions to ensure Will the previously stabilized functions appear BUG due to product updates.
8. Have there been any bugs in automated testing? What should I do if a false alarm occurs?
There have been false positives, and sometimes the automated test report shows that a bug has been found, but the manual test is actually used to confirm that the bug does not exist.
The reasons for false positives are generally:
② The element positioning is unstable, and the stability of the script needs to be improved as much as possible;
② The page is developed and updated but the test is not updated and maintained in time!
9. What problems did you encounter during the automated testing and how to solve it?
① change the page frequently, often have to modify the code inside the page object class
② automated testing occasionally there have been false
case ③ automated test results appear coverage: Jenkins folders according to file time to build
④ automated test code maintenance is too much trouble.
⑤ automated testing Database comparison data
10. What framework was used for automated testing in the previous company?
You can say one of the following:
① python+selenium+unittest+htmltestrunner
② python+selenium+pytest+allure
③ robotframework+Selenium2Library
11. In selenium automated testing, what types of tests do you generally complete? Automation coverage?
Mainly smoke test and regression test. Regression testing mainly writes some scenarios with stable functions, which are realized through automated means to save testing time. Because automated test cases are constantly updated and iterated, there is no deliberate statistics, about 30%-40%!
12. In the process of executing the script, how to realize the highlight display of the current element?
This is actually the use of javaScript to modify the frame style of the current element to achieve the highlighting effect.
13. If an element cannot be positioned, what reasons do you generally consider?
①The page loading element is too slow, add waiting time
②The page has a frame frame page, you need to jump into the frame frame and then locate
③Maybe the element is a dynamic element, the positioning method should be optimized, you can use part of the element to locate or through the parent node or brother Node positioning.
④ The element may be recognized, but it cannot be operated, for example, the element is unavailable, unwritable, etc. You need to use js to complete the pre-operations first.
14. Which element positioning methods are you familiar with?
id, name, class_name, link_text, css, xpath
15. How to deal with the frame page?
First use driver.switch_to.frame() to jump into the frame,
and then manipulate the page elements.
After the operation, use driver.swith_to.default_content() to jump out.
16. How to deal with the alert pop-up window?
Use the driver.switch_to.alert method to jump to the alert pop-up window first
Then click the OK button through accept, it is difficult to cancel through dismiss, and get the text of the pop-up window through text().
17. How to deal with multiple windows?
This jump processing between multiple windows is often encountered in projects. That is, when you click on a link, the link will open in a new tab, and then you need to find elements in the page opened in the new tab.
①We use driver.current_window_handle to get the current window handle before clicking the link.
②Click the link again. After clicking, obtain the handles of all windows through driver.window_handles, ③then
find the handles of the new windows in a loop, and then jump to the new windows through the driver.switch_to.window() method.

[Edit, test, edit] The teaching content is:

Basic knowledge of testing, project combat, test management, agile testing, exploratory testing, APP testing, Linux, database, test environment construction, Python programming, WEB UI automation testing, APP UI automation, interface function testing, performance testing, interfaces Automated testing, Jenkins continuous integration, etc.

Through learning, students can master the latest technology of software testing companies, benchmark the requirements of first-line Internet companies, so that students can reach the level of intermediate and senior test engineers, and can quickly integrate into the actual work of the company after graduation.

No matter you are a liberal arts student, a junior college student, a basic zero, or a female student, you can easily learn it!

Guess you like

Origin blog.51cto.com/14972695/2602104