Gold three silver four, a selection of real interview questions for software testing posts. 【Two sides of Ali】

Look at the time, it's almost the same time, the golden period of job hunting, are you also looking for a job? Are you ready for a company interview? Have you read these corporate interview questions in advance?

Interviews are generally divided into technical interviews and hr interviews. In terms of format, there are few group interviews, and a small number of companies may have a cross interview. But in general, the technical interview is basically to examine your professional technical level, and the hr interview is mainly for interviews. It depends on whether the person's overall quality and family situation meet the company's requirements. Generally speaking, as long as you pass the technical HR interview, there is basically no problem with the technology (there are also a few companies that will interview many people in the HR interview)

 

The following are some classic interview questions for software testing positions that I have compiled. I hope it will be helpful to you who are about to interview

1. What is your testing career development?

 The more testing experience, the higher the testing ability. So my career development needs time to accumulate, step by step toward a senior test engineer. And I also have a preliminary career plan, accumulate testing experience in the first 3 years, ask myself according to the key points of how to be a good test engineer, constantly update myself and correct myself, and do a good job in testing tasks.

 2. What qualities do you think testers need to have?

 You should have a certain ability to coordinate when doing testing, because testers often have to deal with some problems in contact with development, if they are not handled properly, some conflicts will arise, and it will be difficult to do work in this way. And testers must have a certain amount of patience, sometimes doing tests is very boring. In addition to being patient, testers cannot let go of every possible error.

 3. Why are you able to do this line of testing?

 Although my testing technology is not very mature, I think I can still be qualified for the job of software testing, because software testing not only requires good technology, but also has certain external factors such as communication skills, patience, and care. Taken together, I think I am qualified for this job.

4. What is the purpose of the test?

 The purpose of testing is to find out the errors in the software product, and make the software meet the user's requirements as much as possible. Of course, it is impossible for software testing to find all errors.

 5. What are the stages of the test?

 Generally divided into 5 stages: unit testing, integration testing, confirmation testing, system testing, acceptance testing

 6. What is the test object, purpose, test basis and test method of unit test?

 The test object is the program error inside the module, and the purpose is to eliminate the errors and defects in the logic and function of the local module. The test basis is the detailed design of the module, and the test method is the white box test.

 7. How to deal with overtime issues

 I don't have much opinion on working overtime, but I still think that if you can arrange your time reasonably, you won't have too much time to work overtime.

 8. Combining your previous study and work experience, how do you think the test should be done.

 According to my previous work and study experience, I think that to do a good job, you must first have a good communication. Only when the communication is barrier-free, can there be good collaboration and better efficiency. The other thing is that the technology must pass the test , To do the test, you must have enough patience and a good working habit. If you don’t understand, you should ask, and communicate with colleagues in real time. Only in this way can you do a good job in the test.

9. Why did you choose the software testing industry?

 Because I knew about the software testing industry before, I think his development prospects are very good.

10. Describe the software development and testing process based on your previous work or study experience, which roles are responsible, and what do you do

 There are architects, development managers, test managers, programmers, testers. I am mainly responsible for executing test cases for the assigned modules.

11. Tell me about your understanding of software testing/quality assurance based on your experience

 Software quality assurance and testing is to carefully design a batch of test cases (that is, input data and expected output results) according to the specifications of the software development stage and the internal structure of the program, and run the program according to these test cases to find errors. process. It is the testing of various aspects of an application to check its functionality, language validity, and its layout.

 12. What is the process of software testing?

 Requirements survey: comprehensively understand the system overview, application fields, software development cycle, software development environment, development organization, time arrangement, functional requirements, performance requirements, quality requirements and testing requirements, etc. Estimates of personnel, time and effort required for the project and project quotations based on the system overview.

 Develop a preliminary project plan.

 Test preparation: organizing the test team, training, setting up the test and management environment, etc.

 Test design: carry out test design for each test item according to the test requirements, including the design of test cases and the development of test scripts.

 Test implementation: implement the test according to the test plan.

 Test evaluation: According to the test results, a test evaluation report is issued.

13. What is your understanding of SQA's responsibilities and work activities (such as software measurement)?

 SQA is a project team independent of software development. By monitoring the software development process, it is ensured that the software development process follows the specified CMM procedures (if there are corresponding CMM procedures), and it is necessary to provide timely suggestions and improvement plans for non-conforming items. Can report to senior managers in order to solve the problem. In this way, the introduction of defects is prevented, thereby reducing the maintenance cost of later software. The main work activities of SQA include formulating SQA work plan, participating in the review of stage products, auditing process quality, functional configuration and physical configuration, etc.; measuring the data generated during the project development process, etc.

14. How to implement and promote automated testing in the company?

1. The project team researches and selects automation tools and holds a meeting to demonstrate demo cases. We mainly demonstrate selenium and robotframework.

2. Build an automated testing framework and gradually implement automation in the project.

3. Solidify the automation process and framework of the project into documents

4. Promote to other project team applications of the company

15. Please describe the automated testing process?

1. Write an automated test plan

2. Design automated test cases

3. Write automated test frameworks and scripts

4. Debug and maintain the script

5. Unattended testing

6. Later script maintenance (adding use cases, developing updated versions)

16. How to write automated test cases? Choose one of the following answers:

1. The use case is designed by the automation test engineer himself. Generally, the basic business process is the main one at the beginning (login--complete a business--exit)

2. Screened from system test cases or provided by business engineers

17. Execution strategy for automated testing in the previous project?

In the previous project, it was executed regularly, and the set execution time was 12 o'clock in the evening. After the execution was completed, an email notification would be sent automatically

18. Does automated testing find many bugs?

Not many, because the project team used to write automated scripts for the basic functions that have been tested and execute automated tests in subsequent versions. It mainly ensures that the functions that have passed the test will have no problems after the new version is updated.

19. What do you think is the value of automated testing? Why does your company need automated testing?

After citing automated testing, it can replace a large number of tedious regression testing tasks, liberate business testers, and allow business testers to concentrate on complex business function modules. Automated testing generally automates stabilized functions to ensure There will be no bugs in previously stabilized functions due to product updates

20. Has automated testing ever falsely reported bugs? What about false positives?

There have been false positives. Sometimes the automated test report shows that a bug has been found, but the actual bug does not exist through manual testing.

Common reasons for false positives are:

1. Element positioning is unstable, and the stability of the script needs to be improved as much as possible;

2. The development updated the page but the test did not update and maintain in time!

21. During the automated testing process, what problems did you encounter and how did you solve them?

1. Change the page frequently, and often need to modify the code in the page object class

2. Occasional false positives in automated testing

3. Coverage of automated test results: Jenkins creates folders based on time

4. Automated test code maintenance is more troublesome

5. Automated testing for database comparison data

22. What framework did you use for automated testing in the last company?

You can name one of the following:

1.python+selenium+unittest+htmltestrunner

2.python+selenium+pytest+allure

3. robotframework+Selenium3

23. In selenium automation testing, what type of testing do you generally complete? Automated coverage?

Mainly smoke testing and regression testing. The regression test mainly writes some scenarios with stable functions, which are realized by automated means to save test time. Because the automated test cases are constantly updated and iterated, there is no deliberate statistics, about 30%-40%!

24. How to highlight the current element during script execution?

This is actually using javaScript to modify the border style of the current element to achieve the highlighting effect.

25. If an element cannot be positioned, what reasons do you generally consider?

1. Page loading elements are too slow, adding waiting time

2. The page has a frame page, you need to jump into the frame frame before positioning

3. The element may be a dynamic element, and the positioning method needs to be optimized. You can use some elements to locate or locate through parent nodes or sibling nodes.

4. The element may be recognized, but it cannot be operated, such as the element is unavailable, unwritable, etc. Need to use js to complete the pre-operation first,

26. What element positioning methods are you familiar with? (Eight elements positioning method)

id ,name, class, tag, link_text, Partial link text, css, xpath

27. How to deal with the frame page?

First use driver.switch_to.frame() to jump into the frame,

Then operate the page elements,

Use driver.swith_to.default_content() to jump out after the operation

28. 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, click the cancel button through dismiss, and get the text of the pop-up window through text().

29. How to deal with multi-window?

This multi-window jump processing is often encountered in projects. That is, when you click a link, the link will be opened in a new tab, and then you need to find elements on the page opened in the new tab,

1. We use driver.current_window_handle to get the current window handle before clicking the link.

2. Click the link again. After clicking, get the handles of all windows through driver.window_handles,

3. Then loop to find the handle of the new window, and then jump to the new window through the driver.switch_to.window() method.

30. How to verify that the element is enabled/disabled/checked?

After locating the element: judge by three methods: isEnabled(), isSelected(), and isDisplayed() respectively.

31. How to handle the drop-down menu?

There is a class called Select in Selenium, which supports the operation of drop-down menus. The method of use is as follows:

1. Positioning elements

2. Convert the positioned element into a Select object.

sel = Select(positioned element object)

3. Select the drop-down box by subscript or value or text.

sel.select_by_index(index);

sel.select_by_value(value);

sel.select_by_visible_text(text);

32. How do you handle web forms like calendars?

First of all, analyze the front-end code of the calendar plug-in on the current web page to see if it can be realized by element positioning and clicking on the date. If not, you may need to use javascript. There are also some calendar controls that have a text input box, and the sendKeys() method can be used to directly pass in a time data.

33. Give an example to explain the abnormalities you have encountered

Common selenium exceptions are:

NoSuchElementException: No such element exception

TimeoutException: timeout exception

ElementNotVisibleException: The element is not visible exception

NoSuchAttributeException: No such attribute exception

NoSuchFrameException: There is no such frame exception

34. Close the difference between quit and close in the browser

To put it simply, both can realize the function of exiting the browser session, close is to close the tab page you are currently focusing on, and quit is to close all browser tab pages and exit the browser session. Knowing these two differences, we know that quit is generally used before the end of the test, and close is used to close a certain page during the execution of the use case.

These interview questions are some of the real interview questions I selected from major Internet companies, including interview questions for functional testing posts and automation testing posts. Here are some of the more classic ones. Due to limited space, they are not all shown. I hope they can help you !

These interview resources should be the most comprehensive and complete preparation warehouse for [software testing] friends. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey. I hope it can help you too! Need it Friends can click on the small card below to receive

Guess you like

Origin blog.csdn.net/kk_lzvvkpj/article/details/130296962