With the rapid development of the Internet of things, intelligent hardware products have become more and more in the market, the company is also developing several heavy-weight intelligent hardware products, as one of the product QA, sharing under the soft and hard combination of product testing methods.
What is smart hardware, why smart hardware is a trend, you can see the following diagram: Then the next talk about intelligent hardware testing. Look at one more diagram:
This is the architecture of traditional Internet software products, smart hardware?
The figure can be seen, more than a hardware module, the server more than a hardware information processing module, the type of testing more, especially the hardware part, should be how to test it? First of all, I think the following types of tests are planned:
System Testing
Interface Test
Key Test
System testing this part should be very familiar to everyone. Follow the test process to go, requirements analysis, test plan, test case and review, smoke test, perform several rounds of testing, regression test, test report and so on. The main test object is to use the application as the core, and test the functions of the server and the device. At present, we are mainly doing this part of the test, do this part of the test, the product 80% bugs can be found.Interface TestThe previous interface test was mainly the communication between the app and the server, mainly the HTTP request. Smart Hardware Products Server hosting two-side requests, generally hardware products and servers will establish a TCP/UDP long connection, timed heartbeat packets and other communication content package, the other end is the interface of the app side. In Java, for example, test long-connected service side, socket write a client, with out-of-the-box framework Mina/netty write a client, etc., the specific code is not given. HTTP requests do not repeat, there are too many methods. This part of the test is best and development at the same time, but the progress of the new project and demand, the general will wait until the product stability, this piece of the problem found many are not serious problems, but once there is an important problem will lead to the product function can not be used, the service side of the bug fix will soon. Core TestingWhat is a core test? Imagine the intelligent hand ring motion detection is not accurate, OBD will make a static car loss of electricity, intelligent blood pressure monitor to detect the wrong BP and so on, then this product once listed will fail, any bug fix also useless. So this piece of testing is very important. Here are some examples of core test content: Power consumption test, the simplest is to connect a multimeter, real-time view of the device's battery status, but you have to view in real time, there is no history. It is best to prepare a dedicated power Test tool, have AC and DC power, report output, in a variety of configurations of the battery can be automatically recorded. This block is mainly for the bracelet, OBD and other needs of the battery products. GPS testing, outdoor smart products are mostly equipped with GPS,GPS signal strength and the surrounding environment has a direct relationship. Tunnels, high-rise buildings, weather and so on will interfere with GPS positioning, in addition to the device start-off point is also a GPS prone to problems. Interference testing, many intelligent hardware products will be plugged in other devices, such as TV boxes, home control equipment, automotive equipment, to some extent, will interfere with other equipment, and even affect the normal use of other equipment. There are a lot of similar features, these are the core of smart hardware products, if there are problems with these features, the product will die, so this part of the need to focus on testing, put the most manpower in. To sum up, the smart hardware product testing ideas and the previous Internet testing is still a certain difference, we need more attention in hardware, but can not ignore the software, both complementary, will be the future of testing new direction. Ext.: http://qa.blog.163.com/blog/static/19014700220141129372269/
Testing experience of intelligent hardware products