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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


