Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for automatically executing test case, implemented based on mails

A test case and automatic execution technology, which is applied in the communication field, can solve problems such as poor timeliness, and achieve the effects of saving manpower, ensuring execution timeliness, and mitigating methods with poor timeliness

Pending Publication Date: 2019-11-01
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method and device for automatically executing test cases based on mail, so as to alleviate the technical problem of poor timeliness in the method for executing test cases in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for automatically executing test case, implemented based on mails
  • Method and device for automatically executing test case, implemented based on mails
  • Method and device for automatically executing test case, implemented based on mails

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 It is a method of automatically executing test cases based on mail according to an embodiment of the present invention, and is applied to an automated control terminal, such as figure 1 As shown, the method includes the following steps:

[0028] Step S11, receiving the test instruction sent by the mail system.

[0029] In the embodiment of the present invention, the automation control terminal can communicate with the mail system. When a tester wants to execute a certain test case, he can send a mail requesting a test to the preset inbox of the mail system. The received emails are processed to obtain test instructions, and then the automation control terminal will receive the test instructions sent by the mail system. The test instructions include the number of the test case to be executed. According to the actual test needs, the tester may modify the test to be executed. User-defined parameters in the use case, then the modified content of the customized par...

Embodiment 2

[0059] figure 2 is another method of automatically executing test cases based on mail according to an embodiment of the present invention, and is applied to mail systems, such as figure 2 As shown, the method includes the following steps:

[0060] Step S21, acquiring the email body in the preset inbox.

test Embodiment A

[0061] In the embodiment of the present invention, in order to realize the automatic execution of the test case to be executed, the tester needs to send the mail requesting the test to the default inbox of the mail system, and the text of the mail sent by the tester must be written according to the fixed template, Therefore, the embodiment of the present invention configures the mail system to automatically obtain the text of the mail in the preset inbox. The text of the mail sent by the tester can be: Execute the test case number A, and the custom parameter is {"IP": "192.168.10.10"} , the embodiment of the present invention does not specifically limit the format of the email text, as long as the email system can accurately identify the test instruction.

[0062] Step S22, matching the email text with a preset regular expression, and outputting a test instruction.

[0063] After the mail system obtains the text of the mail, it needs to match the text of the mail with the pres...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for automatically executing a test case, implemented based on mails, relates to the technical field of communication, and is applied to an automatic controlterminal. The method comprises the steps: receiving a test instruction sent by a mail system, the test instruction comprising a number of a to-be-executed test case; configuring a test environment based on the test instruction; controlling the test environment to execute the test case to be executed; and determining an execution result of the to-be-executed test case, and sending the execution result to the mail system. According to the method, the functions of automatically executing the test instruction sent by the mail system and feeding back the execution result are realized, and the execution timeliness of the test can be ensured, and the manpower can be saved, so that the technical problem of poor timeliness of a method for executing the test case in the prior art is relieved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method and device for automatically executing test cases based on mail. Background technique [0002] Nowadays, the Internet’s urgent need for cloud services has led to high requirements for rapid iteration of software versions. Before a new software version is released, a large number of test cases need to be executed. In the existing technology, staff must be arranged when the test cases are executed. Configure and monitor the test environment on site. If the staff travels to other places and there is no available test environment around, but urgently needs to test a software version to be released, it is necessary to invite the test environment for on-site human assistance. However, if the on-site Insufficient manpower and unable to assist in testing in time will delay the release time of the software version. This method of executing test cases cannot guarantee that t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36H04L12/58
CPCG06F11/3688G06F11/3664H04L51/42
Inventor 刘旭范渊
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD