#jmeter essay of a single interface and a multi-interface testing

@@@@@@@@@@@@@@@

# Road is long

Recently come into contact with the multi-interface serial interface serial technology would have explained in other posts, the core technology related point is to implement the interface by regular expressions and variables. So far it places the author has used only one time session is on hold. But we see a lot of information said the testing process often encountered b interface needs to return with a data interface, but I did not how far encountered, thought to want to, I opened the wrong way is it? So specifically looking for a place to have context on a practice processes, the following will explain in detail the learning outcomes.

There is a scenario similar to the following operations in the present system:

Business scenario: electronic business platform, the customer returns process. Customer refund the application - Return Request sent to the merchant - merchant processing Return Request - client confirmation returns successfully
tested functions: query returns the user to progress in the
difficult one: business reply in the business process platform
difficulty 2: not from an interface the corresponding extract useful information field, submit an application to return to a true, even id not equal no way associated with the interface, but the actual context is the presence of the business logic

For the above scenario I designed two test scenarios:

Scenario 1: Single interface test, data-coded, different fixed test data, order data specific design, the underlying data requirements are relatively high

Automated processes: 1 to manually generate various types, in various stages of the return order
if the query returns 2 call progress interface to query the corresponding customer return order and asserted that the data generated in Step 1 is consistent

Advantages: small single workload independent interfaces, high stability.
Disadvantages: high cost of data maintenance, the authenticity of the poor, large amounts of data required for each interface test

Automated processes: 1 to manually generate various types, in various stages of the return order
if the query returns 2 call progress interface to query the corresponding customer return order and asserted that the data generated in Step 1 is consistent

Scheme 2: interface association, simulate the business process, the data transferred through the interface control, data need only be given an initial order, to simulate the dynamic data flow in a business process.

Automated processes: 1 return call new application interfaces, the new return request and send the merchant
2 call query interface to query the progress of the return generated an order for 1, to say whether the query data generated in step 1, is in the corresponding progress (submitted)
3 call the business reply Interface reply to apply for
4 call query returns the progress of the interface query step order generation 1, the assertion orders are correct (business processed)
5 call the user to confirm the interface to make returns success
6 call query order returns the progress of the interface query step 1 generated, orders assertion is correct (the return is completed, the order is closed)

Advantages: the authenticity of strong, easy to manage data, a clearer and more streamlined
Disadvantages: big difficulty of the work, the complexity of work, the code is high maintenance costs, poor stability

to sum up

A deflection test program interface function, the interface processing test data for different circumstances. Scheme II deflecting business process test, change, and handling of different business processes test data interface, a more realistic simulation of the actual scene

After I finish found that this is not a bit like units and integrated relational thing. I finally chose a program because the author more than one person company, in addition to test the query other interfaces outside the order status interface is not in my area of ​​responsibility, so I just need to be targeted to test for my interface. In fact, it does not matter what kind of test mode selection, automatic target aims to reduce testing costs, improve test efficiency, their own way is the best.

Guess you like

Origin www.cnblogs.com/baxiaobin/p/12101600.html