A kind of automatic test method and device
A technology of automated testing and test cases, applied in the direction of software testing/debugging, etc., can solve the problems of managing test cases, troublesome test file maintenance, cumbersome operation, etc., and achieve the effect of improving test efficiency and simplifying automated test operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a flowchart of an automated testing method in Embodiment 1 of the present invention. The method can be executed by an automated testing device, which can be realized by means of hardware and / or software, and which can be configured in a smart terminal, which refers to electronic devices such as smart phones and tablet computers.
[0023] Such as figure 1 As shown, the method specifically includes the following steps:
[0024] Step 11. Obtain a pre-created test case script according to the test requirement, wherein the test case script invokes the pre-created test action source code.
[0025] In this embodiment, testers determine test cases (Test Case) by analyzing test requirements. A test case refers to a set of test inputs, execution conditions, and expected results compiled for a specific purpose, in order to test a program path or verify whether a specific requirement is met. Test cases generally include four stages: data preparation stage, data c...
Embodiment 2
[0034] figure 2 It is a flowchart of an automated testing method in Embodiment 2 of the present invention. In this embodiment, the editing process of the test case is further limited on the basis of the first embodiment above.
[0035] Such as figure 2 As shown, the method provided in this embodiment may specifically include the following steps:
[0036] Step 21, obtaining the test actions required by the test cases predetermined according to the test requirements.
[0037] Testers determine the test actions to be executed in the test cases according to the test requirements, such as encryption actions, signature actions, result verification actions, etc., and the smart terminal obtains the test actions required by the test cases.
[0038] Step 22. Obtain the source code of the test action created and encapsulated in a programming language in advance.
[0039] After determining the test actions required by the test case, the tester also uses a programming language to cre...
Embodiment 3
[0046] Figure 3a It is a flowchart of an automated testing method in Embodiment 3 of the present invention. This embodiment provides an automated testing process for the login interface based on the first and second embodiments above.
[0047] Such as Figure 3a As shown, the method provided in this embodiment may specifically include the following steps:
[0048] Step 31 , acquiring the test actions required by the test cases predetermined according to the test requirements.
[0049] Specifically, the test cases corresponding to the login interface include MD5 encryption action, Hmac (Hash-based Message Authentication Code, key-related hash operation message authentication code) signature action, and sending Http (Hyper TextTransfer Protocol, hypertext transfer protocol) request action , verification action, and data recovery action.
[0050] Step 32, obtaining the source code of the test action created and encapsulated in java in advance.
[0051] Figure 3b It is a sch...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


