With the upgrading of various mobile devices, the mobile Internet is developing rapidly. At the same time, mobile applications are growing exponentially. Because of this situation, the demand for app testing has also soared, and has gradually caught up with and surpassed web testing. I have been testing for almost three years. I have been testing apps for most of the time and web testing for about half a year. Let's talk about the difference between web testing and app testing based on my work experience.
1、 First, introduce the key points of web testing and app testing respectively:
WEB test focus
1. Function test:
Whether the functions implemented are consistent with the requirements;
2. Interface test:
Whether the interface is beautiful, the style is consistent, and the text content is correct;
3. Link test:
Whether the speed of opening the link is reasonable; Whether it is linked to the correct page; Whether there are blank pages;
4. Performance test:
How many users can the system support online at the same time; If the number of users exceeds these numbers, what kind of response will the system give;
5. Compatibility test:
Whether the functions of the project can be used normally on different operating systems and browsers;
6. Safety test:
Whether the user's login name and password are encrypted during transmission;
If the user has not operated the page for a long time, whether the session session will expire and require the user to log in again;
Whether the user name and password in the cookies of the log file are encrypted;
Whether there are restrictions on login times and login devices, and whether multiple device logins for one account are supported;
APP test focus
1. Installation and uninstallation
Verify whether the App can be correctly installed, run, uninstalled, and the operation process and the use of system resources before and after the operation.
2. Update
1) When the client has a new version, there should be an update prompt;
2) When the version is a non mandatory upgrade version, the user can cancel the update and the old version can be used normally. When the user starts the app next time, the update prompt will still appear;
3) When the version is a forced upgrade (APP cannot be used without upgrading) version, when the user does not update after the forced update is given, exit the client. The next time you start the app, the forced upgrade prompt still appears;
4) When there is a new version of the client, update it directly to check whether it can be updated normally without deleting the client locally;
5) The new version can be installed offline to overwrite the current version;
6) The upgrade cannot overwrite the user's data.
3. Software button
Whether the functions of relevant buttons in the software are realized, such as the return button.
4. Physical button:
It refers to the test of function realization of function keys and buttons of mobile phones.
5. Registration
1) Test of user registration function: check whether unregistered and registered users can successfully register and whether the registration information is complete;
2) Same as the form editing page;
3) User name and password length;
4) Prompt page after registration;
5) Whether the data on the front registration page and the back management page are consistent;
6) After registration, you will be prompted on the page in background management.
6. Login
1) Function test of user login;
2) Log in to the system with a legitimate user;
3) Whether the system allows multiple illegal logins, and whether there is a limit on the number of times;
4) Whether logging in to the system using the logged in account is handled correctly;
5) Whether to log in when the user name and password (password) are wrong or missing;
6) For the deleted or modified user, log in with the original user name;
7) Do not enter the user password and repeat the "OK/Cancel" button to check whether login is allowed;
8) After login, login information in the page;
9) Handling of login timeout.
7. Exit
For the exit function, pay attention to whether the Android phone can exit by double clicking the return key. The IOS system app usually has an exit button.
8. Personal information management:
It is mainly about the management of relevant information of registered users after login. The content of information is related to requirements.
2、 Next, learn the difference between web testing and app testing:
From the perspective of function testing, there is no difference between APP testing and web testing in terms of process and function testing.
According to their different carriers, the differences are as follows:
1. System structure
Web project, b/s architecture, browser based; As long as the web test updates the server, the client will update synchronously.
App project, with c/s structure, must have client; If the app modifies the server, all core versions of client users need to undergo regression testing.
2. Performance
Web projects need to monitor response time, CPU, and Memory
In addition to monitoring response time, CPU and memory, app projects also need to monitor traffic, power, etc
3. Compatibility
(1) Web project:
1. Browser (Firefox, Google, IE, etc.)
2. Operating system (Windows7, Windows10, Linux, etc.)
(2) App project:
1. Equipment system: iOS (iPad, iPhone), Android (Samsung, Huawei, Lenovo, etc.), Windows (Win7, Win8), OSX (Mac)
2. The mobile phone device can be different according to the mobile phone model and resolution
4. Compared with the Wed project, APP has special tests
1. Interference test: interrupt, call, SMS, shutdown, restart, etc
2. Weak network test (simulating 2g, 3g, 4g, wifi network status and packet loss); Network switching test (reconnection after network disconnection, 3g switching to 4g/wifi, etc.)
3. Install, update, and uninstall
Installation: consider the interruption during installation, weak network, deletion of installation files after installation, etc
Uninstall: consider whether to delete app related files after uninstalling
Update: including forced update, non forced update, incremental package update, breakpoint resume, and update in weak network status
4. Interface operation: for mobile terminal test, attention should be paid to gestures, horizontal and vertical screen switching, multi touch, front and rear console switching
5. Security test: whether the installation package can decompile the code, whether the installation package is signed, and permission settings, such as access to the address book
6. Boundary test: less available storage space, no SD card/dual SD card, flight mode, system time error, third-party dependence (QQ, WeChat login), etc
7. Permission test: set whether an app can obtain the permission, such as access to address book, photo album, camera, etc
5. Test tools
Automation tool: Appium is generally used for APP; Selenium is generally used by the Web
Performance test tool: JMeter is generally used in APP; The web generally uses LR and JMeter
Summary:
Here is just a general difference. I haven't learned something yet. So it can only be written like this.
On the whole, there is not much difference. The products tested are ever-changing, and the idea of testing is unchanged. Even if the tools are different, there is no difficulty in understanding the principles.
Even if the road is curved, you have to walk through it to know. Because you have no choice. If you don't move forward, you will perish. It is our duty to keep learning and accumulate experience.
The text and pictures in this article are from the Internet and my own ideas. They are only for learning and exchange. They do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time to deal with them.