CN116841898A - Test case and test script generation method, device, system and medium - Google Patents

Test case and test script generation method, device, system and medium Download PDF

Info

Publication number
CN116841898A
CN116841898A CN202310861245.2A CN202310861245A CN116841898A CN 116841898 A CN116841898 A CN 116841898A CN 202310861245 A CN202310861245 A CN 202310861245A CN 116841898 A CN116841898 A CN 116841898A
Authority
CN
China
Prior art keywords
test
function
natural language
language processing
banking
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.)
Pending
Application number
CN202310861245.2A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310861245.2A priority Critical patent/CN116841898A/en
Publication of CN116841898A publication Critical patent/CN116841898A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biophysics (AREA)
  • Computer Hardware Design (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a test case and test script generation method, device, system and medium, which can be applied to the artificial intelligence field or the financial field. The method comprises the following steps: acquiring banking function requirements, and splitting the banking function requirements into a plurality of split function point requirements according to test types; inputting the requirements of a plurality of split function points into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements; and inputting the function test points required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points. According to the application, the banking business function requirements are split according to the test types, the natural language processing model is input to automatically generate the test cases, and the function test points are input to the natural language processing model to automatically generate the test scripts, so that the efficiency and the quality of the test cases and the test scripts are improved, and the labor cost is reduced.

Description

Test case and test script generation method, device, system and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a medium for generating test cases and test scripts.
Background
With the progress of technology, various kinds of software are integrated into people's daily life. The frequency of software update iteration is also faster and faster, and in order to adapt to the frequency of software update iteration, an agile development mode is provided to cope with the requirement of rapid change, and the product lead time is shortened.
But each software product needs to be sufficiently tested before release to ensure proper functioning. In the daily test process, in order to guide the test, track the progress of the test and the quality condition of the test, a large number of test cases need to be written. The design and the writing of the test case occupy a large part of time, and whether the design of the case is sufficient directly influences the test effect.
In order to ensure the software quality and the test sufficiency, the tester needs to spend a lot of time to write test cases, and different projects or systems are split into small test points, the idea of the real test is the same, and the test case writing has repeated labor. And the test experience of new staff is insufficient, and the condition that test cases are written and omitted possibly exists. The current automatic test script writing has a lot of repeated work, and the coding technology of most testers is weaker than that of developers, and the manual script writing is slower and easy to cause grammar errors under the condition of unskilled.
Therefore, how to improve the efficiency and quality of test case and test script generation and reduce the labor cost is a technical problem to be solved in the field.
Disclosure of Invention
In view of the above, this summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The application aims to provide a test case and test script generation method, device, system and medium, which can improve the efficiency and quality of test case and test script generation and reduce the labor cost.
In order to achieve the above purpose, the application has the following technical scheme:
in a first aspect, an embodiment of the present application provides a test case and a test script generating method, including:
acquiring a banking function requirement, and splitting the banking function requirement into a plurality of split function point requirements according to a test type;
inputting the split function point requirements into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements;
and inputting the function test points required by the banking function into the pre-trained natural language processing model to generate a test script corresponding to the function test points.
In one possible implementation manner, the inputting the function test point of the banking function requirement into the pre-trained natural language processing model, generating a test script corresponding to the function test point includes:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into the pre-trained natural language processing model to generate test scripts corresponding to the function test points.
In one possible implementation, the method further includes:
acquiring application programming interface information and parameter information of interface test;
inputting the interface information and the parameter information into the pre-trained natural language processing model to generate a test case corresponding to the interface test.
In one possible implementation, the pre-trained natural language processing model includes:
generating a pre-training transformation model ChatGPT.
In a second aspect, an embodiment of the present application provides a test case and a test script generating device, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring banking business function requirements and splitting the banking business function requirements into a plurality of split function point requirements according to test types;
the test case generation unit is used for inputting the split function point requirements into a pre-trained natural language processing model so as to generate a test case corresponding to the banking function requirements;
and the test script generating unit is used for inputting the function test points required by the banking business function into the pre-trained natural language processing model to generate a test script corresponding to the function test points.
In one possible implementation manner, the test script generating unit is specifically configured to:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into the pre-trained natural language processing model to generate test scripts corresponding to the function test points.
In one possible implementation, the method further includes:
the interface information unit is used for acquiring the application programming interface information and the parameter information of the interface test;
and the interface test case generating unit is used for inputting the interface information and the parameter information into the pre-trained natural language processing model to generate a test case corresponding to the interface test.
In one possible implementation, the pre-trained natural language processing model includes:
generating a pre-training transformation model ChatGPT.
In a third aspect, an embodiment of the present application provides a test case and a test script generating system, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the test case and test script generating method when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable medium having a computer program stored thereon, the computer program when processed and executed implementing the steps of the test case and test script generation method described above.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
the embodiment of the application provides a test case and test script generation method, device, system and medium, which can be applied to the field of artificial intelligence or finance. The method comprises the following steps: acquiring banking function requirements, and splitting the banking function requirements into a plurality of split function point requirements according to test types; inputting the requirements of a plurality of split function points into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements; and inputting the function test points required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points. According to the application, the banking business function requirements are split according to the test types, the natural language processing model is input to automatically generate the test cases, and the function test points are input to the natural language processing model to automatically generate the test scripts, so that the efficiency and the quality of the test cases and the test scripts are improved, and the labor cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are some embodiments of the application and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 shows a flowchart of a test case and test script generation method provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a test case and a test script generating device according to an embodiment of the present application.
Detailed Description
It should be noted that the test case and the test script generating method, the device, the system and the medium provided by the application can be applied to the artificial intelligence field, the big data field or the financial field. The foregoing is merely an example, and the application fields of the test case and the test script generating method, the device, the system and the medium provided by the application are not limited.
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
As described in the background art, it has been found through the studies of the applicant that various kinds of software are incorporated into the daily life of people as technology advances. The frequency of software update iteration is also faster and faster, and in order to adapt to the frequency of software update iteration, an agile development mode is provided to cope with the requirement of rapid change, and the product lead time is shortened.
But each software product needs to be sufficiently tested before release to ensure proper functioning. In the daily test process, in order to guide the test, track the progress of the test and the quality condition of the test, a large number of test cases need to be written. The design and the writing of the test case occupy a large part of time, and whether the design of the case is sufficient directly influences the test effect.
In order to ensure the software quality and the test sufficiency, the tester needs to spend a lot of time to write test cases, and different projects or systems are split into small test points, the idea of the real test is the same, and the test case writing has repeated labor. And the test experience of new staff is insufficient, and the condition that test cases are written and omitted possibly exists. The current automatic test script writing has a lot of repeated work, and the coding technology of most testers is weaker than that of developers, and the manual script writing is slower and easy to cause grammar errors under the condition of unskilled.
Therefore, how to improve the efficiency and quality of test case and test script generation and reduce the labor cost is a technical problem to be solved in the field.
In order to solve the technical problems, the embodiment of the application provides a test case and test script generation method, device, system and medium, which can be applied to the field of artificial intelligence or finance. The method comprises the following steps: acquiring banking function requirements, and splitting the banking function requirements into a plurality of split function point requirements according to test types; inputting the requirements of a plurality of split function points into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements; and inputting the function test points required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points. According to the application, the banking business function requirements are split according to the test types, the natural language processing model is input to automatically generate the test cases, and the function test points are input to the natural language processing model to automatically generate the test scripts, so that the efficiency and the quality of the test cases and the test scripts are improved, and the labor cost is reduced.
Exemplary method
Referring to fig. 1, a flowchart of a test case and a test script generating method according to an embodiment of the present application includes:
s101: acquiring banking function requirements, splitting the banking function requirements into a plurality of split function point requirements according to test types,
in the embodiment of the application, to write the test case, firstly, the banking function requirement needs to be acquired so that the test case can be written according to the banking function requirement later.
According to the method, the types of daily tests are classified, and for business function test cases, corresponding requirements can be disassembled into a plurality of small function points, namely banking business function requirements are disassembled into a plurality of split function point requirements according to the test types, so that the accuracy and the efficiency of the follow-up generation of the test cases can be improved.
For example, for the test cases of the loan service function, the test cases can be divided into multiple types such as mortgage, supervision and money release according to types, and each type can be split, so that the accuracy and efficiency of the subsequent test case generation can be improved.
S102: inputting the split function point requirements into a pre-trained natural language processing model to generate test cases corresponding to the banking function requirements.
In the embodiment of the application, a plurality of split function point requirements can be input into a pre-trained natural language processing model to generate the test cases corresponding to banking function requirements.
Specifically, each small functional point is input, a corresponding test case can be quickly generated, then a tester only needs to supplement the corresponding test precondition, or the test case generated automatically is supplemented, test data is prepared, and the writing time of the test case can be greatly reduced.
Meanwhile, the pre-trained natural language processing model is subjected to continuous iterative optimization, so that the accuracy is greatly improved, and a large amount of labor cost is reduced.
S103: and inputting the function test points required by the banking function into the pre-trained natural language processing model to generate a test script corresponding to the function test points.
In the embodiment of the application, for banking business function requirements, splitting is performed in the foregoing to split function point requirements, and for each split function point requirement, one function test point is corresponding.
For example, taking a loan service function as an example, the payoff function test points may include a plurality of payoff function test points, for example, batch payoff, verification, thawing, and the like, and for each function test point, a corresponding test program needs to be established for testing.
Therefore, each function test point required by banking business functions can be input into a pre-trained natural language processing model, and a test script corresponding to the function test point is generated for testing.
Similarly, the efficiency and quality of the generation can be improved and the labor cost can be reduced by utilizing the pre-trained natural language processing model to generate the test script.
In a possible implementation manner, the inputting the function test point required by the banking function into the pre-trained natural language processing model to generate the test script corresponding to the function test point according to the embodiment of the present application may include:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points.
I.e. in an embodiment of the application, automatic generation of test scripts. Information such as a scripting language (Java, python), a test framework (TestNG (test next generation, unit test), a Junit (Java unit test), a pytest (Python test), a Selenium (browser automation test framework), an Appium (Web user interface automation test tool), and the like can be specified, and a test script corresponding to a function test point can be automatically generated.
Alternatively, the input function test point may directly generate a UI (user interface) automation test script, or a mobile terminal test script.
The embodiment of the application can specify the scripting language and the test framework to generate the test script, improves the wide usability of the test script generation, can be used in various scenes, and reduces the workload of development testers.
In a possible implementation manner, the method provided by the embodiment of the application may further include:
acquiring application programming interface information and parameter information of interface test; inputting the interface information and the parameter information into a pre-trained natural language processing model to generate a test case corresponding to the interface test.
That is, in the embodiment of the present application, for the generation of the interface test case, interface api (Application Programming Interface ) information and parameter information may be input, and a pre-trained natural language processing model may be input, so that a test case corresponding to the corresponding interface test may be generated.
Therefore, the embodiment of the application can realize the rapid generation of the interface test case, and can also perform the rapid generation of the interface test script, thereby improving the efficiency and the accuracy of the generation of the test script and the test case.
Optionally, for performance, safety and non-functionality tests, pre-trained natural language processing models can be used to generate some general test cases, and the testers can supplement and prune according to actual situations.
Optionally, the pre-trained natural language processing model provided by the embodiment of the present application may include:
generating a pre-training transformation model ChatGPT.
Specifically, the ChatGPT can quickly generate various types of manuscripts of various languages, including writing codes, checking grammar errors, automatically generating test cases and test scripts by means of the ChatGPT.
In the times of software iteration high frequency and various software outbreaks, test cases and automatic test scripts are automatically generated by using the ChatGPT technology, and testers only need to supplement and perfect, so that the test preparation time is greatly reduced, and the test efficiency is improved.
Optionally, the embodiment of the application can automatically generate the functional test cases, the interface test cases, the performance test cases, the big data test cases, the safety test cases and the nonfunctional test cases, and can generate the interface test scripts, the user interface test scripts, the performance test scripts and the application test scripts.
The embodiment of the application provides a test case and a test script generation method, which can be applied to the field of artificial intelligence or finance. The method comprises the following steps: acquiring banking function requirements, and splitting the banking function requirements into a plurality of split function point requirements according to test types; inputting the requirements of a plurality of split function points into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements; and inputting the function test points required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points. According to the application, the banking business function requirements are split according to the test types, the natural language processing model is input to automatically generate the test cases, and the function test points are input to the natural language processing model to automatically generate the test scripts, so that the efficiency and the quality of the test cases and the test scripts are improved, and the labor cost is reduced.
Exemplary apparatus
Referring to fig. 2, a schematic diagram of a test case and a test script generating device according to an embodiment of the present application includes:
an obtaining unit 201, configured to obtain a banking function requirement, split the banking function requirement into a plurality of split function point requirements according to a test type;
a test case generating unit 202, configured to input the multiple split function point requirements into a pre-trained natural language processing model, so as to generate a test case corresponding to the banking function requirement;
and the test script generating unit 203 is configured to input the functional test points required by the banking function into the pre-trained natural language processing model, and generate a test script corresponding to the functional test points.
In one possible implementation manner, the test script generating unit is specifically configured to:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into the pre-trained natural language processing model to generate test scripts corresponding to the function test points.
In one possible implementation, the method further includes:
the interface information unit is used for acquiring the application programming interface information and the parameter information of the interface test;
and the interface test case generating unit is used for inputting the interface information and the parameter information into the pre-trained natural language processing model to generate a test case corresponding to the interface test.
In one possible implementation, the pre-trained natural language processing model includes:
generating a pre-training transformation model ChatGPT.
The embodiment of the application provides a test case and test script generating device, which can be applied to the field of artificial intelligence or finance. The method applied to the device comprises the following steps: acquiring banking function requirements, and splitting the banking function requirements into a plurality of split function point requirements according to test types; inputting the requirements of a plurality of split function points into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements; and inputting the function test points required by the banking function into a pre-trained natural language processing model to generate test scripts corresponding to the function test points. According to the application, the banking business function requirements are split according to the test types, the natural language processing model is input to automatically generate the test cases, and the function test points are input to the natural language processing model to automatically generate the test scripts, so that the efficiency and the quality of the test cases and the test scripts are improved, and the labor cost is reduced.
On the basis of the above embodiment, the embodiment of the present application provides a test case and a test script generating system, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the test case and the test script generation method when executing the computer program.
On the basis of the above embodiments, the present application further provides a computer readable medium, where a computer program is stored, where the computer program is processed and executed to implement the steps of the test case and the test script generating method.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the system described above; or may exist alone without being assembled into the system.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The foregoing is merely a preferred embodiment of the present application, and the present application has been disclosed in the above description of the preferred embodiment, but is not limited thereto. Any person skilled in the art can make many possible variations and modifications to the technical solution of the present application or modifications to equivalent embodiments using the methods and technical contents disclosed above, without departing from the scope of the technical solution of the present application. Therefore, any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present application still fall within the scope of the technical solution of the present application.

Claims (10)

1. A test case and test script generation method is characterized by comprising the following steps:
acquiring a banking function requirement, and splitting the banking function requirement into a plurality of split function point requirements according to a test type;
inputting the split function point requirements into a pre-trained natural language processing model to generate a test case corresponding to the banking function requirements;
and inputting the function test points required by the banking function into the pre-trained natural language processing model to generate a test script corresponding to the function test points.
2. The method according to claim 1, wherein the inputting the functional test point of the banking function requirement into the pre-trained natural language processing model generates a test script corresponding to the functional test point, includes:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into the pre-trained natural language processing model to generate test scripts corresponding to the function test points.
3. The method as recited in claim 1, further comprising:
acquiring application programming interface information and parameter information of interface test;
inputting the interface information and the parameter information into the pre-trained natural language processing model to generate a test case corresponding to the interface test.
4. The method of claim 1, wherein the pre-trained natural language processing model comprises:
generating a pre-training transformation model ChatGPT.
5. A test case and test script generating device is characterized by comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring banking business function requirements and splitting the banking business function requirements into a plurality of split function point requirements according to test types;
the test case generation unit is used for inputting the split function point requirements into a pre-trained natural language processing model so as to generate a test case corresponding to the banking function requirements;
and the test script generating unit is used for inputting the function test points required by the banking business function into the pre-trained natural language processing model to generate a test script corresponding to the function test points.
6. The device according to claim 5, wherein the test script generating unit is specifically configured to:
and inputting the function test points, the preset script generation language and the preset test frame required by the banking function into the pre-trained natural language processing model to generate test scripts corresponding to the function test points.
7. The apparatus as recited in claim 5, further comprising:
the interface information unit is used for acquiring the application programming interface information and the parameter information of the interface test;
and the interface test case generating unit is used for inputting the interface information and the parameter information into the pre-trained natural language processing model to generate a test case corresponding to the interface test.
8. The apparatus of claim 5, wherein the pre-trained natural language processing model comprises:
generating a pre-training transformation model ChatGPT.
9. A test case and test script generation system, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the test case and test script generation method according to any of claims 1-4 when executing said computer program.
10. A computer readable medium, characterized in that it has stored thereon a computer program which, when processed and executed, implements the steps of the test case and test script generating method according to any of claims 1-4.
CN202310861245.2A 2023-07-13 2023-07-13 Test case and test script generation method, device, system and medium Pending CN116841898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310861245.2A CN116841898A (en) 2023-07-13 2023-07-13 Test case and test script generation method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310861245.2A CN116841898A (en) 2023-07-13 2023-07-13 Test case and test script generation method, device, system and medium

Publications (1)

Publication Number Publication Date
CN116841898A true CN116841898A (en) 2023-10-03

Family

ID=88170490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310861245.2A Pending CN116841898A (en) 2023-07-13 2023-07-13 Test case and test script generation method, device, system and medium

Country Status (1)

Country Link
CN (1) CN116841898A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493198A (en) * 2023-11-15 2024-02-02 北京安锐卓越信息技术股份有限公司 Method, device and medium for automatically writing test cases

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493198A (en) * 2023-11-15 2024-02-02 北京安锐卓越信息技术股份有限公司 Method, device and medium for automatically writing test cases

Similar Documents

Publication Publication Date Title
CN110018955B (en) Generating automated test scripts by transforming manual test cases
CN107506300B (en) User interface testing method, device, server and storage medium
CN109871326A (en) A kind of method and apparatus that script is recorded
CN109857641A (en) The method and device of defects detection is carried out to program source file
CN116841898A (en) Test case and test script generation method, device, system and medium
CN109344074B (en) Cross-platform automatic testing method and system
CN110990274A (en) Data processing method, device and system for generating test case
CN111767209A (en) Code testing method, device, storage medium and terminal
CN114138633A (en) Method, device and equipment for testing software based on data driving and readable medium
CN110609786A (en) Software testing method and device, computer equipment and storage medium
CN113515447B (en) Automatic testing method and device for system
CN113157572B (en) Test case generation method, system, electronic equipment and storage medium
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
EP3872663B1 (en) Method and device for symbolic analysis of a software program
CN113448874A (en) Method and device for generating unit test script
CN114510497A (en) Variable processing method, device and equipment and readable storage medium
CN113360365A (en) Flow testing method and flow testing system
CN106155895A (en) Script data processing method and processing device
CN116361193B (en) Method and device for testing layout document text selection
CN117056211A (en) Low-code automatic test method and device, electronic equipment and storage medium
CN112631930B (en) Dynamic system testing method and related device
US20230342553A1 (en) Attribute and rating co-extraction
CN115292157A (en) Test script generation method, device, equipment, storage medium and program product
CN117707941A (en) Automatic testing method and system based on Uibot framework
CN114253867A (en) Automatic testing method, device and system based on neural network model

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