CN111083007A - Test method, test device, computer equipment and storage medium - Google Patents

Test method, test device, computer equipment and storage medium Download PDF

Info

Publication number
CN111083007A
CN111083007A CN201911148224.6A CN201911148224A CN111083007A CN 111083007 A CN111083007 A CN 111083007A CN 201911148224 A CN201911148224 A CN 201911148224A CN 111083007 A CN111083007 A CN 111083007A
Authority
CN
China
Prior art keywords
test
webpage
case
information
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911148224.6A
Other languages
Chinese (zh)
Other versions
CN111083007B (en
Inventor
黄诗茹
古金峰
崔磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201911148224.6A priority Critical patent/CN111083007B/en
Publication of CN111083007A publication Critical patent/CN111083007A/en
Application granted granted Critical
Publication of CN111083007B publication Critical patent/CN111083007B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a test method, a test device, computer equipment and a storage medium. The method comprises the following steps: the test information is acquired, then the test case of the test webpage is generated according to the test information according to the preset webpage dynamic html generation rule, then the test case is used for testing the item to be tested, the test result is obtained, and then the test report is generated according to the test result. In the test method, the terminal automatically generates the test case of the test webpage by using the webpage dynamic html generation rule, compared with the traditional test method which needs to invest a part of manpower resources and compiles different test cases for different projects, the test method provided by the application realizes full-automatic test, greatly reduces the test time, and particularly greatly reduces the consumption of the manpower resources when the data volume of parameters in the project to be tested is huge, thereby reducing the test time.

Description

Test method, test device, computer equipment and storage medium
Technical Field
The present application relates to the field of wireless communication testing technologies, and in particular, to a testing method, an apparatus, a computer device, and a storage medium.
Background
With the development of wireless communication technology and equipment, a large number of web projects on communication equipment need to be effectively tested and maintained, so that a web automatic testing method which is implemented by converting a human-driven testing behavior into a machine is popularized and applied.
Conventional web automation test methods generally employ automation test tools on the market, such as an interface test souui tool, a pressure test meter tool, a performance test Loadrunner tool, an automation test selenium tool, a QTP tool, a bale grabber tool, and the like. In the testing process, a tester is usually required to design different test cases for different projects and execute the test step by step according to the rules described in the test cases after the test cases pass the evaluation, so as to obtain the comparison between the actual test result and the expected result.
However, in the above test method, since it takes a lot of time for the tester to design the test case for a specific project in the early stage of the project, the test method has problems of long test time and large consumption of human resources.
Disclosure of Invention
In view of the above, there is a need to provide a testing method, an apparatus, a computer device and a storage medium, which can effectively shorten the testing time and reduce the human resource consumption.
In a first aspect, a method of testing, the method comprising:
acquiring test information; the test information is information required when test operation on the test webpage is executed;
generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
testing the test webpage by using the test case to obtain a test result;
and generating a test report according to the test result.
In one embodiment, generating a test case of a test webpage according to test information according to a preset webpage dynamic html generation rule includes:
acquiring a to-be-tested item corresponding to a test webpage from a background server through a selenium test interface according to the test information;
and generating a test case of the test webpage according to the item to be tested according to the webpage dynamic html generation rule.
In one embodiment, after generating the test case of the test webpage according to the test information, the method further includes:
and storing the test case in a preset test case file.
In one embodiment, the testing the test webpage by using the test case to obtain the test result includes:
reading a test case in the test case file;
using the test case to perform test operation on each item to be tested in the test webpage to obtain a test result; the test operation includes at least one of adding a test, deleting a test, modifying a test, and checking a test.
In one embodiment, the item to be tested includes at least one of a directory structure of the test web page, a parameter ID of the test web page, and a prompt value range of the test web page.
In one embodiment, generating a test report according to the test result includes:
marking each test result according to the test attribute of each test result;
and generating a test report according to the marked test results.
In one embodiment, the test attributes include: general, abnormal, and severe.
In a second aspect, a test apparatus, the apparatus comprising:
the acquisition module is used for acquiring test information; the test information is information required when test operation on the test webpage is executed;
the case generation module is used for generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
the test module is used for testing the test webpage by using the test case to obtain a test result;
and the report generation module is used for generating a test report according to the test result.
In a third aspect, a computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the testing method according to any one of the embodiments of the first aspect when executing the computer program.
In a fourth aspect, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the testing method of any of the embodiments of the first aspect.
According to the testing method, the testing device, the computer equipment and the storage medium, the testing information is obtained, the testing case of the testing webpage is generated according to the testing information according to the preset webpage dynamic html generation rule, then the testing case is used for testing the item to be tested, the testing result is obtained, and the testing report is generated according to the testing result. In the test method, the terminal automatically generates the test case of the test webpage by using the webpage dynamic html generation rule, and then automatically tests the items to be tested in the test webpage by using the test case.
Drawings
FIG. 1 is a schematic diagram of a test system according to an embodiment;
FIG. 2 is a flow diagram of a testing method provided by one embodiment;
FIG. 3 is a flow chart of another implementation of S102 in the embodiment of FIG. 2;
FIG. 4 is a flowchart of another implementation of S103 in the embodiment of FIG. 2;
FIG. 5 is a flow chart of another implementation of S104 in the embodiment of FIG. 2;
FIG. 6 is a flow chart of a testing method according to another embodiment;
FIG. 7 is a schematic structural diagram of a testing apparatus according to an embodiment;
FIG. 8 is a schematic structural diagram of a testing apparatus according to another embodiment;
FIG. 9 is a schematic structural diagram of a testing apparatus according to another embodiment;
FIG. 10 is a schematic structural diagram of a testing apparatus according to another embodiment;
FIG. 11 is a schematic structural diagram of a testing apparatus according to another embodiment;
fig. 12 is a schematic internal structural diagram of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The testing method provided by the application can be applied to a testing system shown in fig. 1, wherein the system comprises a terminal and a background server, and the terminal is connected with the background server through a network. The terminal is used for testing Web products or Web projects in the communication equipment or the communication system, and the background server is used for providing data resources for the terminal when testing the Web products or the Web projects. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and the like, and the server can be implemented by an independent server or a server cluster formed by a plurality of servers.
The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart of a testing method according to an embodiment, where an execution subject of the method is the terminal in fig. 1, and the method relates to a specific process of the terminal testing a test item on a test web page. As shown in fig. 2, the method specifically includes the following steps:
s101, obtaining test information; the test information is information required for executing test operation on the test webpage.
The test information is verification information which needs to be logged in when the terminal performs test operation on a Web page to be tested on certain communication equipment or a communication system, so that the terminal can acquire the authority of testing the Web page to be tested, and the test information specifically includes a URL of the test Web page, a user name of the test Web page and a password of the test Web page, wherein the URL of the test Web page, the user name of the test Web page and the password of the test Web page can be defined by developers or testers in advance according to actual design requirements.
In this embodiment, when the terminal needs to start testing the test web page, the user may input the test information on the terminal in various ways. For example, the user may directly input the test information in the information input window on the terminal, or alternatively, the user may also pre-configure the test information and store the test information in a corresponding configuration file, and the terminal may directly call the test information when the terminal needs to start testing the test web page. The embodiment is not limited to the way in which the user inputs the test information. After the user inputs the test information on the terminal, the terminal can immediately acquire the test information input by the user, so that the terminal can execute operations of logging in a corresponding test program, accessing a corresponding test webpage to be tested and the like according to the test information.
And S102, generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule.
The webpage dynamic html generation rule is a generation method for generating html webpages, and is an existing mature webpage generation method. In this embodiment, after the terminal acquires the test information input by the user based on the step of S101, the terminal may further acquire all relevant information of the test web page to be tested according to the test information, for example, a parameter ID, a directory structure, an information input box value range, a drop-down box option, and the like on the test web page. Then, the terminal can dynamically generate a test case when the test webpage needs to be tested according to all the acquired related information and a method indicated by a preset webpage dynamic html generation rule, so as to be used later.
S103, testing the test webpage by using the test case to obtain a test result.
When the terminal generates a test case for testing the test webpage based on the step of S102, the test case can be automatically used to simulate the click test method of the user, and perform a test on related items or parameters on the test webpage, so as to obtain the test result of the test webpage.
And S104, generating a test report according to the test result.
When the terminal tests the test web page based on the step of S103 to obtain a test result, the terminal may further perform data processing on the test result again, for example, add labels, statistical data, and the like. Then, the terminal can generate a test report according to the processed test result and a preset report format, so that a tester or a developer can effectively position, investigate and solve the problems on the test webpage according to the test report.
According to the testing method provided by the embodiment, the testing information is acquired, the testing case of the testing webpage is generated according to the testing information according to the preset webpage dynamic html generation rule, then the testing case is used for testing the item to be tested, the testing result is obtained, and the testing report is generated according to the testing result. In the test method, the terminal automatically generates the test case of the test webpage by using the webpage dynamic html generation rule, and then automatically tests the items to be tested in the test webpage by using the test case.
Fig. 3 is a flowchart of another implementation manner of S102 in the embodiment of fig. 2, and as shown in fig. 3, the step S102 "generating a test case of a test web page according to a preset web page dynamic html generation rule and test information" includes:
s201, acquiring a to-be-tested item corresponding to the test webpage from the background server through a selenium test interface according to the test information.
The background server is used for storing all items to be tested, or parameters, or other content information related to the testing webpage, and the background server and the terminal can be connected through a network. In this embodiment, when the terminal acquires the test information, the terminal may log in and start a corresponding test program, and acquire the to-be-tested items corresponding to the test web page from the background server according to the address indicated by the test information through a corresponding test interface on the test program, so that the terminal may generate a test case according to the to-be-tested items. It should be noted that, when a developer develops a test program in an early stage, the development may be specifically performed based on a selenium data packet, and therefore, in this embodiment, the terminal may specifically obtain relevant information of some test webpages on the background server through a selenium test interface.
Optionally, the item to be tested may specifically include at least one of a directory structure of the test web page, a parameter ID of the test web page, and a prompt value range of the test web page. It should be noted that, the limitation of the item to be tested in this embodiment is only an example, and in practical applications, the item to be tested may also include information on other types of test webpages. This embodiment is not limited thereto.
S202, generating a test case of the test webpage according to the to-be-tested item according to the webpage dynamic html generation rule.
In this embodiment, when the terminal obtains the item to be tested from the background server, the test case when the test webpage needs to be tested can be dynamically generated according to the webpage dynamic html generation rule, so as to be used later. It should be noted that, because the test is implemented by using the selenium technology, when the terminal generates a test case, a detailed test case related to Xpath corresponding to the selenium technology is generated. Since the selenium technology is widely applied, the test method provided by the application adopts the test program developed by the selenium development kit in the early stage, so that the applicability of the test method applied to the test program of the selenium is strong.
In the embodiment, the test of the test webpage is realized without manually compiling the test case, but the terminal automatically generates the test case to realize the test of the test webpage, so that the time for manually positioning and correcting all parameters on the test webpage when compiling the test case is greatly saved, and meanwhile, the consumption of human resources is reduced.
In practical applications, after the terminal performs the above S102, the terminal may further perform the following steps: and storing the test case in a preset test case file.
In the embodiment, the test case file is used for storing the test case automatically generated by the terminal. After the terminal dynamically generates the test case according to the webpage dynamic html generation rule, the generated test case can be further stored in a test case file so as to be used by the terminal later.
Fig. 4 is a flowchart of another implementation manner of S103 in the embodiment of fig. 2, and as shown in fig. 4, the step S103 "test the test webpage by using the test case to obtain the test result" includes:
s301, reading the test cases in the test case file.
When the terminal needs to use the test case to test the test webpage, the test case in the test case file can be read, so that the read test case can be used for testing the test webpage.
S302, carrying out test operation on each item to be tested in the test webpage by using the test case to obtain a test result; the test operation includes at least one of adding a test, deleting a test, modifying a test, and checking a test.
When the terminal reads the test case in the test case file, the test case can be used to perform test operation on each item to be tested in the test webpage, and a test result of each step is obtained. Specifically, the terminal may perform at least one test operation of an add test, a delete test, a modify test, and an inspection test on each item to be tested during the test.
In practical applications, after the terminal performs the above S103, the terminal may further perform the following steps: and storing the test result in a preset result document.
The result document is used for storing a test result of each step obtained after the terminal tests the test webpage step by step. When the terminal performs the step-by-step test on the test web page and obtains the test result of each step, the obtained test result can be further stored in a predefined result document for the terminal to use later.
Fig. 5 is a flowchart of another implementation manner of S104 in the embodiment of fig. 2, and as shown in fig. 5, the S104 "generating a test report according to a test result" includes:
s401, marking each test result according to the test attribute of each test result.
The test attribute represents the nature of the test result, for example, the test result may be a general result, an abnormal result, or a serious error result. In this embodiment, the test attributes include: the test result is a general result, the test result is an error result corresponding to the abnormality, and the test result is a serious error result corresponding to the abnormality.
And when the terminal needs to generate a test report according to the test result, generating a corresponding test report according to each test result. In this embodiment, the terminal may mark each test result first, and specifically, may mark each test result according to the test attribute of each test result, so as to mark the test attribute corresponding to each test result, so that a tester or a developer may quickly evaluate each test result according to the test attribute, thereby facilitating the tester or the developer to locate, investigate, and solve the problem on the test webpage later.
S402, generating a test report according to the marked test results.
After the terminal obtains the labeled test results, the terminal can generate the test reports according to the preset report formats, for example, the report formats of the EXE form, the WORD, the TXT, the webpage, and the like, so that the user can check the test reports. The test report shows the test result of each step when the test web page is tested and the corresponding test attribute information. Optionally, the test report may specifically be a test report in a form of a web page, and the test report in the form of the web page may include some statistical charts, curves, and the like in addition to the test result and the test attribute information. Therefore, the test report in the form of the webpage has stronger visibility and is more beneficial to the user to view.
In summary, the present application also provides a testing method, as shown in fig. 6, the method specifically includes:
s501, acquiring test information configured by a user; the test information includes the URL of the test web page, the username of the test web page, and the password of the test web page.
S502, calling a corresponding selenium test interface by using a selenium technology, and reading information related to the test webpage, such as a directory structure of the test webpage, a parameter ID of the test webpage, a prompt value range of the test webpage and the like from a background server according to the test information.
S503, according to a preset webpage dynamic html generation rule, generating a detailed test case related to Xpath according to the read information related to the test webpage, such as the directory structure of the test webpage, the parameter ID of the test webpage, the prompt value range of the test webpage and the like.
S504, storing the test case in a preset test case file.
And S505, reading the test cases in the test case file, simulating a user by adopting a selenium technology, and performing click test on the test webpage by using the read test cases to obtain a test result.
S506, storing the test result in a result document.
S507, labeling each test result in the result document according to the test attribute of each test result to obtain a labeled result document; the test attributes include general, abnormal, and severe.
And S508, generating a test report in a webpage form according to the marked result document.
The testing method provided by the embodiment realizes the full-automatic testing of the Web page, and does not need to intervene any manual operation in the testing process. When different products need to be tested, the testing method provided by the application only needs to reconfigure the URL of the testing webpage, the user name and the password of the testing webpage, and solves the problems that the traditional testing method only can test one product or item, and when different products or items need to be tested, the application range is small and the testing breadth is not enough due to the fact that a testing case and a testing program need to be redesigned. The test method provided by the application can be suitable for different products to be tested, and is wide in test range and strong in popularization and application.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or phases is not necessarily sequential.
In one embodiment, as shown in fig. 7, there is provided a test apparatus including: the system comprises an acquisition module 11, a use case generation module 12, a test module 13 and a report generation module 14, wherein:
an obtaining module 11, configured to obtain test information; the test information is information required when test operation on the test webpage is executed;
the generating case module 12 is used for generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generating rule;
the test module 13 is used for testing the test web page by using the test case to obtain a test result;
and a report generation module 14, configured to generate a test report according to the test result.
In an embodiment, as shown in fig. 8, the use case generating module 12 includes:
the obtaining unit 121 is configured to obtain, through a selenium test interface, an item to be tested corresponding to a test web page from a background server according to the test information;
and the generating unit 122 is configured to generate a test case of the test webpage according to the item to be tested according to the webpage dynamic html generating rule.
In an embodiment, as shown in fig. 9, after the generating the use case module 12, the test apparatus further includes:
the first storage module 15 is configured to store the test case in a preset test case file.
In one embodiment, as shown in fig. 10, the test module 13 includes:
the reading unit 131 is configured to read a test case in the test case file;
the testing unit 132 is configured to perform a testing operation on each item to be tested in the testing webpage by using the test case to obtain a testing result; the test operation includes at least one of adding a test, deleting a test, modifying a test, and checking a test.
In an embodiment, the item to be tested includes at least one of a directory structure of a test web page, a parameter ID of the test web page, and a prompt value range of the test web page.
In one embodiment, as shown in fig. 11, the report generation module 14 includes:
the labeling unit 141 is configured to label each test result according to the test attribute of each test result;
and a report generating unit 142, configured to generate a test report according to the labeled test results.
In one embodiment, the test attributes include: general, abnormal, and severe.
For the specific definition of the test device, reference may be made to the above definition of a test method, which is not described in detail herein. The modules in the testing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring test information; the test information is information required when test operation on the test webpage is executed;
generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
testing the test webpage by using the test case to obtain a test result;
and generating a test report according to the test result.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, further implementing the steps of:
acquiring test information; the test information is information required when test operation on the test webpage is executed;
generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
testing the test webpage by using the test case to obtain a test result;
and generating a test report according to the test result.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of testing, the method comprising:
acquiring test information; the test information is information required when test operation on a test webpage is executed;
generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
testing the test webpage by using the test case to obtain a test result;
and generating a test report according to the test result.
2. The method according to claim 1, wherein the generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule comprises:
acquiring a to-be-tested item corresponding to the test webpage from a background server through a selenium test interface according to the test information;
and generating a test case of the test webpage according to the to-be-tested item according to the webpage dynamic html generation rule.
3. The method of claim 2, wherein after generating the test case of the test webpage according to the test information, the method further comprises:
and storing the test case in a preset test case file.
4. The method of claim 3, wherein the testing the test webpage using the test case to obtain a test result comprises:
reading the test cases in the test case file;
using the test case to perform test operation on each item to be tested in the test webpage to obtain a test result; the test operation comprises at least one of adding a test, deleting a test, modifying a test and checking a test.
5. The method according to any one of claims 2 to 4, wherein the item to be tested comprises at least one of a directory structure of the test web page, a parameter ID of the test web page, and a prompt value range of the test web page.
6. The method of claim 5, wherein generating a test report based on the test results comprises:
marking each test result according to the test attribute of each test result;
and generating the test report according to the labeled test results.
7. The method of claim 6, wherein the test attributes comprise: general, abnormal, and severe.
8. A test apparatus, the apparatus comprising:
the acquisition module is used for acquiring test information; the test information is information required when test operation on a test webpage is executed;
the case generation module is used for generating a test case of the test webpage according to the test information according to a preset webpage dynamic html generation rule;
the test module is used for testing the test webpage by using the test case to obtain a test result;
and the report generation module is used for generating a test report according to the test result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911148224.6A 2019-11-21 2019-11-21 Test method, test device, computer equipment and storage medium Expired - Fee Related CN111083007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911148224.6A CN111083007B (en) 2019-11-21 2019-11-21 Test method, test device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911148224.6A CN111083007B (en) 2019-11-21 2019-11-21 Test method, test device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111083007A true CN111083007A (en) 2020-04-28
CN111083007B CN111083007B (en) 2022-07-29

Family

ID=70311442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911148224.6A Expired - Fee Related CN111083007B (en) 2019-11-21 2019-11-21 Test method, test device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111083007B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597018A (en) * 2020-12-22 2021-04-02 未来电视有限公司 Interface test case generation method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307665A1 (en) * 2004-10-19 2009-12-10 Ebay Inc. Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
CN101883024A (en) * 2010-06-23 2010-11-10 南京大学 Dynamic detection method for cross-site forged request
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
US8689189B1 (en) * 2008-02-15 2014-04-01 Amazon Technologies, Inc. Systems and methods for testing widgets
CN103984628A (en) * 2014-05-15 2014-08-13 中国南方航空股份有限公司 Automatic function test method and system applied to BS (browser/server) framework
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN106294107A (en) * 2015-05-27 2017-01-04 富士通株式会社 The method and apparatus generating the test case of Webpage
CN107766250A (en) * 2017-11-02 2018-03-06 百度在线网络技术(北京)有限公司 Method of testing, device, server and the storage medium of advertisement pattern
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN109359050A (en) * 2018-11-15 2019-02-19 北京奇虎科技有限公司 Webpage test method, device and system
CN110232016A (en) * 2019-03-08 2019-09-13 上海蔚来汽车有限公司 Interface testing case generation method, device and controller and medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090307665A1 (en) * 2004-10-19 2009-12-10 Ebay Inc. Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
US8689189B1 (en) * 2008-02-15 2014-04-01 Amazon Technologies, Inc. Systems and methods for testing widgets
CN101883024A (en) * 2010-06-23 2010-11-10 南京大学 Dynamic detection method for cross-site forged request
CN103313289A (en) * 2012-03-09 2013-09-18 腾讯科技(深圳)有限公司 Wap system automatic test system and method
CN103984628A (en) * 2014-05-15 2014-08-13 中国南方航空股份有限公司 Automatic function test method and system applied to BS (browser/server) framework
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN106294107A (en) * 2015-05-27 2017-01-04 富士通株式会社 The method and apparatus generating the test case of Webpage
CN108446190A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 interface test method and device
CN107766250A (en) * 2017-11-02 2018-03-06 百度在线网络技术(北京)有限公司 Method of testing, device, server and the storage medium of advertisement pattern
CN109359050A (en) * 2018-11-15 2019-02-19 北京奇虎科技有限公司 Webpage test method, device and system
CN110232016A (en) * 2019-03-08 2019-09-13 上海蔚来汽车有限公司 Interface testing case generation method, device and controller and medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SASWAT ANAND,ETC.: ""An orchestrated survey of merhodologies for automated software test case generation "", 《JOURNAL OF SYSTEMS AND SOFTWARE》 *
姜文等: "基于Selenium的Web软件自动化测试", 《计算机技术与发展》 *
贾丽等: "基于控件约束关系的Web功能测试系统", 《计算机工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597018A (en) * 2020-12-22 2021-04-02 未来电视有限公司 Interface test case generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111083007B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN111061526B (en) Automatic test method, device, computer equipment and storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
CN109766256B (en) Method and device for testing H5 page performance in application program and computer equipment
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN110647320A (en) Project framework construction method and device, computer equipment and storage medium
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
WO2015131804A1 (en) Call stack relationship acquiring method and apparatus
CN111797026A (en) Test case generation method and device, computer equipment and storage medium
CN112199300B (en) Interface testing method and device, electronic equipment and storage medium
CN112799940B (en) Regression testing method, regression testing device, computer system and computer readable storage medium
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
US10803166B1 (en) Automated determination of application privileges
CN112799958A (en) Equipment batch test method and device, computer equipment and medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN111897727A (en) Software testing method and device, computer equipment and storage medium
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN111083007B (en) Test method, test device, computer equipment and storage medium
CN111431767A (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN114461533A (en) Method, system, electronic device and storage medium for automatic testing of Web page
CN113553088A (en) Patch package distribution method and device, computer equipment and storage medium
CN113220566A (en) Interface performance test script generation method and device and computer equipment
CN112433929A (en) Webpage debugging method and device, computer equipment and storage medium
CN112052070A (en) Application containerization evaluation method and device, electronic equipment and storage medium
CN110598142A (en) Webpage calibration method and device, computer equipment and storage medium
CN110865943A (en) Interface testing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220729