Interface automation test method and system, electronic equipment and storage medium

A technology for automated testing and interface testing, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc. The effect of improving stability

Pending Publication Date: 2020-09-04
CTRIP TRAVEL NETWORK TECH SHANGHAI0
0 Cites 2 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to overcome the defect that the interface automation testing method in the prior art canno...
View more

Method used

In the present embodiment, based on technologies such as Vue framework, JavaScript, online test platform is set up, and interface automation test code writing work is moved on a platform tool, realizes the online writing and execution of support test case, is convenient to and test case The management of the interface improves the convenience of automated testing; it eases the writing and maintenance of automated test scripts for developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly improve the interface automated regression testing. Coverage, while increasing the proportion of automated testing in the business requirements research and development process.
In the present embodiment, based on technologies such as Vue framework, JavaScript, online test platform is set up, and interface automation test code writing work is moved on a platform tool, realizes the online writing and execution of support test case, is convenient to and test case management, which improves the convenience of interface automation testing; eases the automation test script writing and maintenance work of developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly improve the interface automation regression testing Coverage, while increasing the proportion of automated testing in the business requirements research and development process.
In the present embodiment, based on technologies such as Vue framework, JavaScript, online test platform is set up, and interface automation test code writing work is moved on a platformized tool, realizes supporting online writing and execution of test case, is convenient to and test case management, which improves the convenience of interface automation testing; eases the automation test script writing and maintenance work of developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly...
View more

Abstract

The invention discloses an automatic interface testing method and system, electronic equipment and a storage medium. The method comprises the steps: building an online testing platform; adding a plurality of test cases for interface testing on line through the on-line test platform; configuring each test case, and classifying the configured test cases to obtain a plurality of test suites; assembling the test suite to obtain a test item, and configuring the test item; and running the configured test item to obtain a test result. According to the invention, online writing and execution of the test case are supported; the convenience of interface automatic test work development is improved; automatic test script writing and maintenance work of developers and testers is relieved, manpower andtime cost investment of manual testing is reduced, teams can conveniently and rapidly improve the coverage rate of interface automatic regression testing, and meanwhile the proportion of automatic testing in the business requirement research and development process is increased.

Application Domain

Software testing/debugging

Technology Topic

Online testManual testing +12

Image

  • Interface automation test method and system, electronic equipment and storage medium
  • Interface automation test method and system, electronic equipment and storage medium
  • Interface automation test method and system, electronic equipment and storage medium

Examples

  • Experimental program(6)

Example Embodiment

[0076] Example 1
[0077] like figure 1 As shown, the method for interface automation testing of this embodiment includes:
[0078] S101, building an online test platform;
[0079] S102. Online adding multiple test cases for interface testing through the online testing platform;
[0080] S103, configuring each test case;
[0081] S104. Classify the configured test cases to obtain multiple test suites;
[0082] Among them, each test suite corresponds to multiple test cases of the same category;
[0083] S105. Assemble the test suite to obtain test items;
[0084] S106, configuring the test items;
[0085] S107. Run the configured test item to obtain a test result. Among them, the test results include test reports, details of use case execution, retry of failed use cases, etc.
[0086] In this embodiment, JavaScript is supported for online writing of test cases, so as to realize convenient management of test design, test cases, test suites, test items, and test tasks.
[0087] In this embodiment, an online testing platform is built based on technologies such as the Vue framework and JavaScript, and the writing of interface automation testing codes is moved to a platform-based tool to support online writing and execution of test cases, which facilitates the management of test cases. Improves the convenience of interface automation testing; eases the writing and maintenance of automated test scripts for developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly improve the coverage of interface automation regression testing. At the same time, the proportion of automated testing in the research and development of business requirements has been increased.

Example Embodiment

[0088] Example 2
[0089] like figure 2 As shown, the method for automated interface testing in this embodiment is a further improvement on Embodiment 1, specifically:
[0090] Step S101 includes:
[0091] S1011, using the Vue framework and JavaScript to build a test front end;
[0092] S1012, using Java technology to build a test background;
[0093] Wherein, Java technology includes but not limited to Java Service and Java Cron (both Java Service and Java Cron are a kind of Java technology).
[0094] S1013, using MongoDB and SqlServer to build a test database;
[0095] Among them, the online test platform includes a test front end, a test background and a test database.
[0096] In addition, the online test platform also includes MOM interface, PaaS interface, CI interface and Mock interface, etc.
[0097] Among them, the online test platform interacts with the MOM platform through the MOM interface; the online test platform interacts with the PaaS platform through the PaaS interface; the online test platform interacts with the CI platform through the CI interface; the online test platform interacts with the Mock platform through the Mock interface. The platform also integrates the function of interacting with platforms such as MOM platform, PaaS platform, CI platform and Mock platform.
[0098] like image 3 As shown, the online testing platform of this embodiment involves Vue framework, JavaScript, Java Service, Java Cron, MOM interface, PaaS interface, CI interface and Mock interface.
[0099] Among them, the CI interface supports automated continuous integration, supports Pipeline and code coverage statistics, etc.; the Mock interface realizes the direct correlation between test cases and Mock use cases, improves the convenience of using Mock in automated testing, and improves the test cases. stability.
[0100] like Figure 4 As shown, the online test platform includes a test interface.
[0101] When the online test platform includes a test interface, step S102 includes:
[0102] S1021. Online adding multiple test cases for interface testing in the test interface;
[0103] Step S103 includes:
[0104] Configure the interface request message, dependent service, AB experiment, response verification message and SOA call verification message corresponding to each test case. That is, it supports AB experiment configuration, and supports obtaining service-dependent packets for verification, thereby meeting higher testing requirements.
[0105] After step S101, before step S103 also includes:
[0106] Write test verification scripts online in the test interface; among them, the test verification scripts are used for test run test cases. In addition, scripts that request formatting can also be written at the same time.
[0107] Step S104 includes:
[0108] Classify, manage and assemble configured test cases according to service type, test type, test level, etc. to obtain multiple test suites;
[0109] Step S106 includes:
[0110] Configure at least one of the service test address corresponding to the test project, project execution plan and email report notification.
[0111] In this embodiment, an online testing platform is built based on technologies such as the Vue framework and JavaScript, and the writing of interface automation testing codes is moved to a platform-based tool to support online writing and execution of test cases, which facilitates the management of test cases. Improves the convenience of interface automation testing; eases the writing and maintenance of automated test scripts for developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly improve the coverage of interface automation regression testing. At the same time, the proportion of automated testing in the research and development of business requirements has been increased.

Example Embodiment

[0112] Example 3
[0113] like Figure 5 As shown, the system of the interface automation test of the present embodiment includes a platform building module 1, a test case adding module 2, a test case configuration module 3, a test suite acquisition module 4, a test item acquisition module 5, a test item configuration module 6 and test results Get module 7.
[0114] Platform building module 1 is used to build an online test platform;
[0115] Test case adding module 2 is used for adding multiple test cases for interface testing online through the online test platform;
[0116] Test case configuration module 3 is used to configure each test case;
[0117] The test suite acquisition module 4 is used to classify the configured test cases to acquire multiple test suites;
[0118] Among them, each test suite corresponds to multiple test cases of the same category;
[0119] The test item obtaining module 5 is used to assemble the test suite to obtain the test items;
[0120] The test item configuration module 6 is used to configure the test item;
[0121] The test result obtaining module 7 is used to run the configured test items to obtain the test results. The test results include test reports, use case execution details, failed use case retry and so on.
[0122] In this embodiment, JavaScript is supported for online writing of test cases, so as to realize convenient management of test design, test cases, test suites, test items, and test tasks.
[0123] In this embodiment, an online testing platform is built based on technologies such as the Vue framework and JavaScript, and the writing of interface automation testing codes is moved to a platform-based tool to support online writing and execution of test cases, which facilitates the management of test cases. Improves the convenience of interface automation testing; eases the writing and maintenance of automated test scripts for developers and testers, reduces the manpower and time cost of manual testing, and facilitates the team to quickly improve the coverage of interface automation regression testing. At the same time, the proportion of automated testing in the research and development of business requirements has been increased.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

QoS management system and method of SDN controller

Owner:INST OF ACOUSTICS CHINESE ACAD OF SCI

File storage method and apparatus for cluster system

InactiveCN106021506Aeasy to manage
Owner:SHENZHEN CHINA BLOG IMFORMATION TECH CO LTD

Method and device for automatic AP access as well as wireless router

ActiveCN107548063Aeasy to manageSave password typing work
Owner:何雄英

Classification and recommendation of technical efficacy words

  • easy to manage
  • Improve convenience

Method, device and physical host for managing physical network card

ActiveCN102932174AEasy to managegood unified management
Owner:HUAWEI TECH CO LTD

Intelligent access system with instant messaging function and method

InactiveCN103593891Aeasy to manageReal-time control of visitor information and security
Owner:周良文

LCD instilling device and method thereof

Owner:KUSN INFOVISION OPTOELECTRONICS

Image display method and apparatus

ActiveUS20130040623A1improve conveniencemaximize utility
Owner:LG ELECTRONICS INC

Voice control method and device

Owner:LE SHI ZHI XIN ELECTRONICS TECH TIANJIN

Continuously operable seat-reclining device for vehicles

InactiveUS20050110322A1actuate load be reduceimprove convenience
Owner:DAS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products