Software testing interview questions from major manufacturers, interview experience sharing (including answers)


Preface

1. Telephone interview for Huawei test position

one side

1) Self-introduction
2) Project process ==> Explain the H model
3) Business process ==> Project explanation, you can start with the loan process
4) Have you done any automation?

5) Have you done interface testing?

You can start with postman and jmeter for manual interface testing, and then Python+request library and jmeter for interface automation.

6) Have you done any performance testing?

It can be said that I have done it, but pay attention to the skills in answering. You can use badboy to record performance scripts, and then import them into jmeter to stress test the interface and generate an aggregate report.

Remember not to overestimate the number of concurrencies in the stress test, because the concurrency in the test environment is too high and the server has limited capacity. You can increase the number of concurrencies from 50-100-200-500-1000, and check the performance indicators. As for performance tuning It can be said that our testers are only responsible for executing and generating test reports. Any defective areas are handed over to developers for tuning.

7) Tell me what you find difficult in performance testing?

Performance bottleneck analysis and tuning

8) In what aspects do you think you are recognized by the team?

It can be seen from the attitude towards work, getting along with colleagues, and often sharing technology in the company, etc.

9) Do you know Java?

Answer first. You can understand basic Java syntax. If the interviewer asks about specific knowledge in Java, you may have forgotten the specific theory. But when you see basic Java syntax at work, you can understand it. This It's not a big problem.

10) Is there anything you want to ask?

Depending on the situation, if the conversation is pleasant and the other person has a good personality, you can ask us what kind of projects we are doing here.

Two sides

1) Self-introduction
2) Business process ==> Project explanation, you can start with the loan process
3) What is used for automation

4) How to do interface testing?

You can start with postman and jmeter for manual interface testing, and then Python+request library and jmeter for interface automation.

5) Let’s talk about commonly used Linux commands and ask what else can be connected to free for viewing?

free -m, if you want to check how to use this command, you can use man free

6) Will it be possible to add, delete, modify, and query the database?

In the company, there is no problem with adding, deleting, modifying and checking basic grammar.

7) Query the information of name=Zhang San in the query table

select * from 表名 where name = "张三";

8) How to view rows 200-300 in the table

select * from 表名 limit 199,101;

9) http status codes, I asked what do the ones starting with 200, 404, and 5 mean?

200 The server responded successfully and returned the page 404. The requested page or resource does not exist. Server error starting with 5.

10) Automated element positioning method, how to obtain the xpath path, is there any other way besides copying? In addition to
copying xpath, you usually write the xpath syntax yourself.
For example: // [@id="kw"] //input[@id="kw "] // [@id="form"]/span[1]/input[1] and so on.

11) How is your coding ability?

There is no problem in writing UI automation and interface automation test scripts. You can also design UI and interface frameworks related to the company's business.

12) Is there anything you want to ask?

Depending on the situation, if the conversation is pleasant and the other person has a good personality, you can ask us what kind of projects we are doing here.

2. Ping An Telephone Interview

1) Introduce yourself
2) Explain your project?

Please explain in detail the module you are responsible for, the project explanation, you can start with the loan process.

3) How is the login data created?

Write a stored procedure or use pymysql module to connect to the database through Python and then implement it with Python script

4) How to do interface testing?

You can start with postman and jmeter for manual interface testing, and then Python+request library and jmeter for interface automation.

5) How to keep replying in jmeter?

Add a cookie manager, or if the interface returns a token value, you can add a regular extractor after the login interface and extract the token value returned by the login interface as the input parameter of the next interface.

6) How to test the associated interface?

You can get the return value of the previous interface and put it in the global dictionary

import requests
import re

class Province:

    def get_province(self,num):
        '''
        获取省份接口
        :return:
        '''
        url = 'http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getSupportProvince'
        headers = {
    
    "Content-Type":"application/x-www-form-urlencoded"}
        response = requests.post(url=url,headers=headers)
        result = re.findall('<string>(.+)</string>',response.text)
        return result[num]
        # print(response.text)

    def get_city(self):
        '''
        根据省份获取城市接口
        :return:
        '''
        url = 'http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getSupportCity'
        data = {
    
    
            "byProvinceName":self.get_province(5)
        }
        headers = {
    
    "Content-Type": "application/x-www-form-urlencoded"}
        response = requests.post(url=url,data=data,headers=headers)
        print(response.text)

if __name__ == '__main__':
    p = Province()
    # p.get_province()
    p.get_city()

7) How to query logs with mysql?

select * from mysql.general_log;

8) How to specifically locate the log information?

After logging in to the mysql database:
enter the command show variables like 'log'; check whether the query log is turned on
. If you find that the log is not turned on, check the location of the startup configuration file of the mysql service.
Close the mysql service, open the my.ini configuration file, and add the variable
log=E:/ mysql_log.txt, and then start the mysql service

Log in to the mysql client again and query the table. All query operations are recorded in the E:/mysql_log.txt file.

3. Ping An Life Insurance interview

1) Introduce yourself
2) Explain the project on your resume. What did you test more in this project?

Project explanation, you can start from the loan process

3) What modules are you mainly responsible for? Let’s explain it in detail.

4) How to do interface testing?

You can start with postman and jmeter for manual interface testing, and then Python+request library and jmeter for interface automation.

5) What bugs did you encounter in the interface, and how were they solved? Bug description: The interface returns status code 400001, and the front end prompts an interface decryption exception.

Positioning analysis: When the front-end input parameters, it only passed the MD5 encrypted transmission of screct_key + username + password to send the request, but the back-end code
needs to decrypt the value encrypted by the AES encryption algorithm and then combine it with the MD5 value when judging. comparing.

At this time, the parameters passed from the front end are not encrypted by AES, and the back end throws an exception.
The status_code returned by the interface is 400001. The display style of the status code returned by the front end according to the interface is: interface decryption exception.

Solution: When calling the interface, first generate the MD5 value through MD5 encryption and then encrypt it through AES before requesting the interface.

6) How to find data in the background database and how to locate bugs?

Used select statements, combined with database and interface and page prompts to locate bugs

7) How is performance testing done?

It can be said that I have done it, but pay attention to the skills in answering. You can use badboy to record performance scripts, and then import them into jmeter to stress test the interface and generate an aggregate report.

Remember not to overestimate the number of concurrencies in the stress test, because the concurrency in the test environment is too high and the server has limited capacity. You can increase the number of concurrencies from 50-100-200-500-1000, and check the performance indicators. As for performance tuning It can be said that our testers are only responsible for executing and generating test reports. Any defective areas are handed over to developers for tuning.

8) What are the key indicators of performance testing? Please explain how you judged each one?

Interface response time, throughput, throughput rate, error rate. Make judgments based on different concurrent data and refer to the company's performance index export standards.

9) Is there anything else you want to know?

It depends on the situation. If the conversation is pleasant and the other party has a good personality, you can ask what kind of projects we are doing here.

Focus: How to explain resume projects (details), as well as backend database query, bug location, function and interface testing.

4. ChinaSoft International Interview (Huawei Outsourcing – Payment Project)

1) How many use cases have been written for interface testing?

Generally speaking, you can write about 6-12 use cases for an interface.

2) How do you automate the interface?

3) How do you test your third-party interfaces?

Generally, the service provider will provide us with interface documents. If there are problems with the interface, we will contact the developers of the service provider to help us conduct interface joint debugging.

4) How do you do performance testing, the process, and what indicators you look at

5) The resume says that you know Linux commands, what commands do you know, and what commands do you use to check the file size?

6) What tests have been done on the database data and how to verify the correctness of the generated data?

View the display of the front-end page and go to the database for data query

7) What products and businesses does your last company do? Is your product an APP or a web version? ——On the web side, is there any backend involved?

8) Do you know the general structure of your system, and have you read the design documents? How was it deployed after it was made? Is there any database cache used? What is the backend database used?

Linux for deployment, mysql database for storage, and Redis database for caching

9) Did you set up the test environment?

10) Please pick a module and tell me how you design the use case. This module should preferably have a database connection.

11) Will you check the background log?

Yes, I usually use account: admin and password: xxxxx to log in to the backend log management system and search for recent logs by searching for keywords or interface names.

12) Is there any use case design involving amount?
13) Do you have any checkpoints for the interface?

14) How well did the performance test measure? What was used to measure it? When will it be tested?

Testing with jmeter, locust or loadrunner is usually done when the environment is stable, system integration testing and regression testing.

15) You tested 100 orders. How did you use jmter? What is the process of thinking?
16) Will you check the background settings during the test?

17) Log level, do you use Linux commands to read logs in the background? What commands do you use? How to locate the problem?

7 log levels + debug debugging information generally locates problems by looking at error logs

18) Does the database involve stored procedures, triggers, scheduled tasks, etc.?

Yes, when creating your own numbers, you will use stored procedures, triggers and scheduled tasks. When synchronizing data in the database, we will use execution triggers and scheduled tasks.

19) Are there any queries for page management? Will there be some slow queries (management console), full queries, fuzzy queries, and will common fields be indexed?

We must build an index, and we usually use fuzzy query, because if we use full query, the first one will be more troublesome to match, and the second one will also put a lot of pressure on the database, because every query requires the database to be compiled.

20) You use the unittest framework, specifically how to write use cases and how to design the framework.

Layered thinking (whether you are asking about interface or UI automated testing)

21) Regarding the iteration cycle of previous work projects, will they participate in the launch together? When will the launch be scheduled?

The time to participate and go online is generally after 10 o'clock in the evening, because there are fewer people using it at this time.

22) Can you accept overtime work?
23) Regarding career planning, will you accept challenging things?

The following is the most comprehensive software testing engineer learning knowledge architecture system diagram in 2023 that I compiled.

1. Python programming from entry to proficiency

Please add image description

2. Practical implementation of interface automation projects

Please add image description

3. Web automation project actual combat

Please add image description

4. Practical implementation of App automation project

Please add image description

5. Resumes of first-tier manufacturers

Please add image description

6. Test and develop DevOps system

Please add image description

7. Commonly used automated testing tools

Please add image description

8. JMeter performance test

Please add image description

9. Summary (little surprise at the end)

Time flies, don’t be afraid of the passage of time, as long as you keep working hard, you will reap growth and gains. Believe in yourself, go beyond your limits, and create your own brilliant life.

Life is like a marathon. Although there are difficulties and obstacles, as long as you run unremittingly and tenaciously, you will eventually usher in your own victory and glory!

Don’t flinch in the face of difficulties, and don’t stop in the face of challenges. Only by persevering in struggle can you create your own magnificent life and let your dreams soar in the endless blue sky!

Guess you like

Origin blog.csdn.net/csdnchengxi/article/details/135341579