Current location - Training Enrollment Network - Education and training - Java Training of Beida Jade Bird: Interface Automation Testing Framework?
Java Training of Beida Jade Bird: Interface Automation Testing Framework?
Automated test projects will be divided into many different test modules, and today we will learn about the common types of automated test frameworks for interfaces.

Let's start the main content of today's Shanxi java course.

Requirements: 1, user-friendly interface.

2. It is convenient to debug the interface.

3. Support data initialization.

4. Generate a test report.

5. Support parameterization.

Robotframework advantages keyword-driven, user-defined keywords.

Support the generation of test logs and reports.

Support system keyword development, good scalability.

Support database operations.

Disadvantages interface test cases are not concise enough to write.

Need to master specific grammar.

Result: No one wants to write interface use cases like this anyway.

The advantage of JMeter is that it supports parameterization and does not need to write code. The disadvantage of creating interface use cases is inefficiency.

Unable to generate a test report to check the implementation of each interface.

Summary: If you don't consider it, it is inconvenient to write the interface, mainly because you can't generate the test report. If you do interface performance, you can consider it.

Advantages of HttpRunner: based on YAML/JSON format, focusing on the interface itself.

Interface writing simple interface recording function, used to generate test reports.

Disadvantages: there is no editor plug-in to check grammar, which is easy to make mistakes.

There is no detailed explanation in the official documents.

It is inconvenient to expand.