Hogwarts Testing Institute Software Testing | Internet company testing management and leadership improvement compulsory

The main points of MP4:
1. Self-introduction and introduction
This is generally the first question in the interview. Remember that everyone's resume is different, but there is only one jd. So study the jd of this position, and then customize the self-introduction, remove the irrelevant, emphasize the relevant, and highlight the ones that can give you extra points. So generally there is this routine:

First introduce your school and company. Now you generally look at the undergraduate and previous company. If they are not good, you may not be able to pass the resume level.
a. If your school makes you proud, first introduce your school and major
. b. If the school is not good, introduce the company you have worked for directly, select famous and relevant ones, and
talk briefly about the projects you are responsible for and you I don’t need to elaborate on my responsibilities, because I will definitely ask in detail later in the interview.
Talk about your understanding and interest in this position. It
must be simple, in place, and expressive. Everything is a self-introduction for this position.
2. Introduce the company project you are responsible for.
First of all, you have to explain clearly to others, what is the product of your project? Don't talk too much. For example, our product is a live broadcast application. What are the competing products on the market? Let's talk about the top 1 and then talk about the features. If you know the user data, you can also talk about it.
Next, let’s talk about several terminals of the project product, server, client, Android, ios. To put it simply, if the interviewer is still interested, you can talk about the technical architecture, which is quite difficult. You have to take a good look at your products.
Usually when you get here, the interviewer will ask, what are you doing in the project. Then you have to say that your role in the project is the test master or the person in charge of a certain module. If it is the master control, you must talk about your test plan and test strategy. If you are responsible for testing modules, you must talk about which modules. What is the role of these modules? 4. Finally, talk about your achievements.
3. If the project cycle is short and testing manpower is scarce, how do you coordinate?
Testing is under pressure, and development must be under pressure. Cut demand together with development.
Increase investment in department and test scores and do more accurate testing.
Test advancement.
Strengthen development self-testing and pull development and delivery cases.
Overtime
4. Describe your team’s test division
When business pressure is high, business is the main focus and technology is the supplement
When the business is small, the technology is the mainstay and the business is not lost. The
elderly bring newcomers, the newcomers help the elderly, select business leaders and technical leaders to form a team echelon
5. What testing framework is used to do the automated testing
testng of the previous project

6. Which library you are most familiar with, how to use these libraries, whether you have done encapsulation based on reuse, how to consider these encapsulations
encapsulate the basic classes, such as: waiting for an element to appear, more convenient to find the method of operating the element, Classes and methods related to the tested business

7. How to use xpath to locate a sibling element, that is, the element that belongs to the same parent node as the element
A: First find the parent element, and then find your own sibling element

8. How to troubleshoot when the use case fails in automation?
A: Manually check whether the application is really buggy, confirm that it is not a bug, and whether the new version introduces new changes, debug the script to see if your script is not waiting for elements to appear After the operation, is there other elements appearing on the element? Does this operation operate on other elements?

9. How to realize this method of waiting for the element to appear
There are three ways to wait:
1) Display waiting: Display waiting, which means that you have to wait until an element appears, and wait until you wait, unless you wait within the specified time. If not found, then jump out of Exception, code, element = WebDriverWait(driver, 10).until( EC.presence_of_element_located((By.ID, “myDynamicElement”))
2) Implicit wait: it is the browser when the driver is created The object creates a waiting time. This method is to wait for a period of time until a certain element is obtained. 3) Thread suspension: Thread.sleep(); This kind of waiting is dead, and it is easy to hang the thread To make the program throw an exception

Use a loop interval to check whether the element is visible
. The soft wait class soft waitElementIsEnabledBy
that is encapsulated by itself uses WebDriverWait.until, waits for 20 seconds until the element is executed directly, if not, waits in a loop, and throws an exception if it does not wait for 20 seconds

public static Boolean waitElementIsEnabledBy(By by) {
try {
WebDriver waitDriver = driver;
long waitTime = 20;
waitDriver.manage().timeouts().implicitlyWait(waitTime, TimeUnit.SECONDS);
(new WebDriverWait(waitDriver, waitTime)).until(ExpectedConditions.elementToBeClickable(by));
return true;
} catch (Exception e) {
return false;
}
}

10. In selenium automated testing, what type of tests do you generally complete?
Used for regression testing. A regression is performed every iteration

11. When do you not automate testing?
① People should not automate in the following situations
② When the application under test changes frequently
③ One test case
④ Temporary-random testing

12. How do you connect to the database from Selenium?
Selenium is a Web UI automation tool. It does not provide any API to establish a database connection.
We need the jdbcjar package, and then use the Connection object to connect to the database and execute sql

13. What is the difference between single slash and double slash in XPath?
1) If XPath starts from the document node, it will allow the creation of "absolute" path expressions.
For example, "/html/body/p" matches all paragraph elements.
2) If XPath starts a selection match anywhere in the document, then it will allow the creation of "relative" path expressions.
For example, "// p" matches all paragraph elements.

What verification points can be used in Selenium?
Selenium has three main verification points-
check page title,
check some text,
check some elements (text box, drop-down menu, table, whether the element appears, whether it is clickable, whether it disappears, etc.)

14. What is the mechanism for handling multiple pop-up windows in selenium?
You can use the command getWindowHandles() to handle multiple pop-up windows.
Then store all the window names into the Set variable and convert them to an array.
Next, navigate to a specific window by using the array index.
driver.switchTo().window(ArrayIndex);

15. How do you deal with Ajax controls using Selenium?
To process such a control, you need to capture all suggested values ​​in the string after entering the value in the text box; then, split the string and take the value.

16. How will you handle alerts/pop-up windows in Selenium WebDriver?
Two types of alarms are commonly cited.
Windows-based alert pop-up window
Web-based alert pop-up window

Web-based alert pop-up window.
WebDriver provides users with a very effective way to handle these pop-up windows using the Alert interface.
1) void dismiss()-Once a pop-up window appears, the dismiss() method will click the "Cancel" button.
2) void accept()-As long as the pop-up window appears, the accept() method will click the "Ok" button.
3) String getText()-The getText() method returns the text displayed in the warning box.
4) void sendKeys(String stringToSend)-The sendKeys() method enters the specified string pattern into the warning box.
Windows-based alert pop-up window.
Dealing with windows-based pop-up windows is always a bit tricky, because we know that Selenium is an automated testing tool that only supports web application testing, that is, it does not support Windows-based applications, and window alerts are one of them.
Robot class is a Java-based utility program that simulates keyboard and mouse operations and can be effectively used to handle windows-based pop-ups and keyboard events.
The KeyPress and KkeyRelease methods can respectively simulate the user's pressing and releasing a key on the keyboard.

Guess you like

Origin blog.csdn.net/weixin_52772147/article/details/112099004
Recommended