CN117573566A - Multi-system test case generation method, device and storage medium - Google Patents

Multi-system test case generation method, device and storage medium Download PDF

Info

Publication number
CN117573566A
CN117573566A CN202410057623.6A CN202410057623A CN117573566A CN 117573566 A CN117573566 A CN 117573566A CN 202410057623 A CN202410057623 A CN 202410057623A CN 117573566 A CN117573566 A CN 117573566A
Authority
CN
China
Prior art keywords
test
test case
combination
information
variant
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
CN202410057623.6A
Other languages
Chinese (zh)
Other versions
CN117573566B (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.)
Kirin Software Co Ltd
Original Assignee
Kirin Software Co 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 Kirin Software Co Ltd filed Critical Kirin Software Co Ltd
Priority to CN202410057623.6A priority Critical patent/CN117573566B/en
Publication of CN117573566A publication Critical patent/CN117573566A/en
Application granted granted Critical
Publication of CN117573566B publication Critical patent/CN117573566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9035Filtering based on additional data, e.g. user or group profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a method, a device and a storage medium for generating a multi-system test case, wherein the method comprises the following steps: reading key value pairs, variant information and combined filtering information in the test frame configuration file; selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system; traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame; and filling the test case frame by using a preset parameter set to generate a test case. The automatic test can be realized by utilizing the universal script without manually generating a large number of test cases and developing corresponding scripts, and the code redundancy and development difficulty are reduced.

Description

Multi-system test case generation method, device and storage medium
Technical Field
The present invention relates to the field of program debugging technologies, and in particular, to a method, an apparatus, and a storage medium for generating a multi-system test case.
Background
In the process of developing a software project, since the project time is short and the test workload is large and repeated, an automated test is generally required to shorten the time of developing the software project.
At present, the functions aiming at the operating system mainly depend on manual testing, which is time-consuming and labor-consuming, has too high labor cost, is troublesome for some complex functions to be manually executed, and the existing function automatic testing is that one use case corresponds to one script, and single script development is carried out aiming at one function. When an automatic test is performed among a plurality of virtual operating systems, a plurality of use cases are required to be set, and corresponding scripts are matched, so that the development difficulty is high, and the code redundancy degree is too high.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for generating multiple system test cases, which are used for solving the technical problems of high difficulty and high redundancy degree in setting multiple cases and script development in the process of performing automatic test on multiple systems in the prior art.
In a first aspect, an embodiment of the present invention provides a method for generating a multi-system test case, including:
reading key value pairs, variant information and combined filtering information in the test frame configuration file;
selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system;
traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame;
and filling the test case frame by using a preset parameter set to generate a test case.
In a second aspect, an embodiment of the present invention further provides a device for generating a multi-system test case, including:
the reading module is used for reading key value pairs, variant information and combined filtering information in the test framework configuration file;
the selection module is used for selecting an approximate test operating system and generating a combined filter information combination according to a filter information comparison table of a test case of the approximate test operating system;
the combination module is used for performing traversal combination on the key value pairs, the variant information and the combination filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame;
and the generating module is used for filling the test case frame by utilizing a preset parameter set to generate a test case.
In a third aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a multi-system test case generation method as provided by the above embodiments.
The method, the device and the storage medium for generating the multi-system test cases are provided by the embodiment of the invention, and key value pairs, variant information and combined filtering information in the test frame configuration file are read; selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system; traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame; and filling the test case frame by using a preset parameter set to generate a test case. Various test case frameworks are generated by combining the key value pairs, the variant information and the combined filtering information. The method can utilize the filtering information in the approximate test system, utilize the combination strategy to generate various test case frameworks, and utilize the parameter set to fill the generated test case frameworks so as to form various test cases. The method can generate a test case framework by utilizing key value pairs, variant information and combined filtering information, does not need to manually generate a large number of test cases, does not need to develop corresponding scripts, can realize automatic test by utilizing universal scripts, and reduces code redundancy and development difficulty.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart of a method for generating a multi-system test case according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for generating a multi-system test case according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a multi-system test case generating device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for generating a multi-system test case according to an embodiment of the present invention, where the embodiment is applicable to a case where a plurality of test cases are generated using a rule of an existing test case in a multi-system, the method may be executed by a device for generating a multi-system test case, and specifically includes the following steps:
step 110, reading key value pairs, variant information and combined filter information in the test frame configuration file.
In this embodiment, a test frame configuration file may be provided and stored in a cfg file. Optionally, the test framework configuration file may store key value pairs, variant information, and combined filter information. Or respectively storing the key value pairs, the variant information and the combined filtering information in the configuration files, and storing the configuration files in the configuration file folder.
Key value pairs, variant information and combined filter information are sequentially read from the configuration file.
Illustratively, the key-value pair may be a type defining a parameter key in a manner of < key > = < value >, i.e. a use case, value being a string ending with a line-break, such as: test_type=start, test_type is "key", start is "value", and if the combination relation is not considered, it can be temporarily understood that one start represents one use case, and the parameters are resolved from top to bottom, so that the following key will actually cover the preceding key.
Variants are key to parameter configuration, each variant section defining a single dimension of the array. Parameter delivery is achieved by variants.
The composition filtering information is used to help screen case compositions, which can typically be implemented with connective words. Alternatively, two types of filters, only and no, respectively, may be used. Only in combination with this item of tape behind it, no in contrast, no in combination with this item of tape behind it, the other items in combination.
And 120, selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of the test cases of the approximate test operating system.
In this embodiment, the filtered information combination is not applicable to all operating systems, and therefore, in this embodiment, an approximate test operating system may be selected. The corresponding filtered information comparison table can be generated by using the existing test cases of the approximate test operating system. The filter information lookup table indicates the available filter information combinations. By looking up the filtered information look-up table, available filtered information combinations can be obtained.
Optionally, the selecting an approximate test operating system may include: acquiring all operating systems of which the tests are completed; querying the bottom layer application program interfaces of all the tested operating systems; the operating system with the same underlying application program interface is divided into approximate operating systems. Some common virtual machine management tools and cloud computing framework platforms, such as OpenStack, openNebula, are underlayed with the application program interface of libvirt, which is used, and can be regarded as a similar operating system.
Optionally, the variant information includes: variant sections and corresponding variant subsections; and the combination of the key value pairs, the variant information and the combined filtering information can be traversed and combined in a mode of combining a rectangular coordinate system and an inclined coordinate system, and the method is specifically optimized as follows: generating a nested variant using the variant subsections; and traversing and combining the key value pairs, the nested variants and the combined filtering information combination in a mode of combining a rectangular coordinate system and an inclined coordinate system. Each variant section or block defines a single dimension of the output array and may contain multiple co-level parameters. When the profile contains two variant sections, the output will be all possible combinations of the two variant contents. Variants can be nested in other variants, effectively nesting any complex array in cells of an external array.
And 130, traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame.
The combination of rectangular coordinate system and inclined coordinate system can simplify and concentrate the highly complex multidimensional test parameter array into a plane list. By using the method, the key value pairs, the variant information and the combined filtering information can be combined in a traversing way to generate a test case framework.
Taking vmtop test as an example, the traversal combination is implemented with the following statement:
variants:
- positive_test:
variants:
- life_cycle:
variants:
- start:
test_type = start
- destroy:
test_type = destroy
- reboot:
test_type = reboot
- pause_resume:
test_type = pause
- data_events:
test_type = data_events
- cmdline_d:
option = "d"
interval = 2
- multivmtop:
test_type = multivmtop
vmtopnum = 6
- vcpu_hotplug:
test_type = vcpu_hotplug
vcpu_placement = "static"
variants:
- single_vm:
test_type = single_vm
vm_num = 1
- multi_vms:
test_type = multi_vms
vm_num = 3
onlylife_cycle.start
- negative_test:
variants:
- invalid_cmdline:
option = "x"。
with the above statement, at least the following test cases can be generated:
$case.positive_test.single_vm.life_cycle.start
$case.positive_test.single_vm.life_cycle.destroy
$case.positive_test.single_vm.life_cycle.reboot
$case.positive_test.single_vm.life_cycle.pause_resume
$case.positive_test.single_vm.data_events
$case.positive_test.single_vm.cmdline_d
$case.positive_test.single_vm.multivmtop
$case.positive_test.single_vm.vcpu_hotplug
$case.positive_test.multi_vms.life_cycle.start。
and 140, filling the test case frame by using a preset parameter set to generate a test case.
In this embodiment, the variants are used to perform parameter filling to generate a complete test case.
The embodiment reads key value pairs, variant information and combined filtering information in the test framework configuration file; selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system; traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame; and filling the test case frame by using a preset parameter set to generate a test case. Various test case frameworks are generated by combining the key value pairs, the variant information and the combined filtering information. The method can utilize the filtering information in the approximate test system, utilize the combination strategy to generate various test case frameworks, and utilize the parameter set to fill the generated test case frameworks so as to form various test cases. The method can generate a test case framework by utilizing key value pairs, variant information and combined filtering information, does not need to manually generate a large number of test cases, does not need to develop corresponding scripts, can realize automatic test by utilizing universal scripts, and reduces code redundancy and development difficulty.
In a preferred implementation of this embodiment, the method may further comprise the steps of: and calling a test script to test the test case. In this embodiment, a script file may be further provided, and the script file may use a general python language, which is suitable for various operating systems and platforms. The test cases can be executed to perform the test by using the script file.
In another preferred implementation of the present embodiment, the method may further comprise the steps of, prior to downloading the installation test guidance frame: installing a virtualized component of the test operating system; and checking whether the binary files and the header files in the operating system image meet the requirements of the test cases, and checking whether the application programs meet the requirements when the binary files and the header files meet the requirements. Virtualized components, such as qemu, libvirt, etc., are installed, and framework dependent packages, such as git, gcc, python3-pip, etc., may be installed. And checking binary files and header files, such as/bin/gcc,/usr/include/sys/unistd.h, and the like, judging whether files in the virtualized component are matched with the generated test cases, checking application programs, such as/bin/qemu-img, and the like after the files are matched, further judging whether the reference programs meet the requirements of the test cases, and generating the test cases through subsequent programs after the files pass the checking. By using the above method, test cases applicable to multiple systems can be generated.
Optionally, the multi-operating system case test can be realized by using a virtual machine technology, wherein HostOS can adopt a Galaxy kylin advanced server operating system (Host version) V10, and is a requirement of the kylin software for adapting to virtualization, cloud computing, big data and industrial Internet age on the reliability, safety, performance, expansibility and instantaneity of a Host system. Guest OS can be system software running on top of the virtual machine cloud server, an important component of the virtual machine cloud server service. By using the method, multi-system testing can be realized.
Example two
Fig. 2 is a flow chart of a method for generating a multi-system test case according to a second embodiment of the present invention, where the method is optimized based on the foregoing embodiment, and the method may further include the following steps: randomly selecting the key value pairs, the variant information and the combined filtering information for combination, removing the traversal combination from the combination generated set, and generating a reverse test case frame; randomly selecting parameters from a preset parameter set to fill the reverse test case framework, and generating a reverse test case.
Referring to fig. 2, the method for generating the multi-system test case includes:
step 210, reading key value pairs, variant information and combined filter information in the test frame configuration file.
Step 220, selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of the test cases of the approximate test operating system.
And 230, performing traversal combination on the key value pairs, the variant information and the combination filtering information combination by using a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame.
And 240, randomly selecting the key value pairs, the variant information and the combination filtering information, combining the combination generated set, removing the traversal combination and generating a reverse test case framework.
Test Case (Test Case) refers to the description of a specific software product for testing tasks, and reflects testing schemes, methods, technologies and strategies. The test case mainly comprises four contents: use case title, preconditions, test procedure and expected result. Reverse test cases, which generally refer to inputs or states not supported by the system, can check the fault tolerance and reliability of the system.
In this embodiment, the key value pair, the variant information and the combination filtering information may be selected randomly, and in particular, variant bytes that do not belong to the same variant may be combined to generate a combination set, and a subset of the forward test case frame may be removed, and the subset may be removed, so as to obtain the reverse test case frame.
And 250, randomly selecting parameters from a preset parameter set to fill the reverse test case frame, and generating the reverse test case frame.
Furthermore, parameters can be randomly selected for filling, and a reverse test case frame is generated.
And 260, filling the test case frame by using a preset parameter set to generate a test case.
The embodiment adds the following steps: randomly selecting the key value pairs, the variant information and the combined filtering information for combination, removing the traversal combination from the combination generated set, and generating a reverse test case frame; randomly selecting parameters from a preset parameter set to fill the reverse test case framework, and generating a reverse test case. The reverse test case framework can be generated by utilizing the mode, so that the reverse test case is perfected.
Example III
Fig. 3 is a schematic structural diagram of a multi-system test case generating device provided in a third embodiment of the present invention, referring to fig. 3, where the multi-system test case generating device includes:
a reading module 310, configured to read the key value pairs, the variant information and the combined filtering information in the test frame configuration file;
the selecting module 320 is configured to select an approximate test operating system, and generate a combined filtered information combination according to a filtered information comparison table of a test case of the approximate test operating system;
the combination module 330 is configured to perform traversal combination on the key value pair, the variant information and the combination filtering information combination by using a combination manner of a rectangular coordinate system and an inclined coordinate system, so as to generate a test case frame;
the generating module 340 is configured to fill the test case framework with a preset parameter set, and generate a test case.
The multi-system test case generating device provided by the embodiment reads the key value pairs, the variant information and the combined filtering information in the test frame configuration file; selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system; traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame; and filling the test case frame by using a preset parameter set to generate a test case. Various test case frameworks are generated by combining the key value pairs, the variant information and the combined filtering information. The method can utilize the filtering information in the approximate test system, utilize the combination strategy to generate various test case frameworks, and utilize the parameter set to fill the generated test case frameworks so as to form various test cases. The method can generate a test case framework by utilizing key value pairs, variant information and combined filtering information, does not need to manually generate a large number of test cases, does not need to develop corresponding scripts, can realize automatic test by utilizing universal scripts, and reduces code redundancy and development difficulty.
On the basis of the above embodiments, the variant information includes: variant sections and corresponding variant subsections;
correspondingly, the combination module comprises:
a nested variant generation unit for generating a nested variant using the variant subsections;
and the combination unit is used for performing traversal combination on the key value pairs, the nested variants and the combination filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system.
On the basis of the above embodiments, the device further includes:
and the test module is used for calling a test script to test the test case.
On the basis of the above embodiments, the test module includes:
and the output unit is used for recording the execution process and corresponding parameters if the test abnormality is caused by the test point in the execution process and outputting the recorded execution process and corresponding parameters to a preset log storage path.
The generation module comprises:
the downloading unit is used for downloading and installing the test guide frame and writing a storage path of the test case frame in an information file of the test guide frame;
and the importing unit is used for carrying out dependency package installation on the test case frame and designating a parameter set to be imported through an importing instruction.
On the basis of the above embodiments, the device further includes:
the installation module is used for installing a virtualized component of the test operating system;
and the checking module is used for checking whether the binary files and the header files in the test operating system image meet the requirements of the test cases, and checking whether the application programs meet the requirements when the binary files and the header files meet the requirements.
On the basis of the above embodiments, the device further includes:
the random selection module is used for randomly selecting the key value pairs, the variant information and the combined filtering information to be combined, combining the generated set, removing the traversal combination and generating a reverse test case frame;
and the filling module is used for randomly selecting parameters from a preset parameter set to fill the reverse test case frame and generating the reverse test case frame.
The multi-system test case generating device provided by the embodiment of the invention can execute the multi-system test case generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
A fourth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any of the multi-system test case generation methods provided in the above embodiments.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer-readable storage medium would include the following: 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 this document, 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. 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 wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The multi-system test case generation method is characterized by comprising the following steps of:
reading key value pairs, variant information and combined filtering information in the test frame configuration file;
selecting an approximate test operating system, and generating a combined filter information combination according to a filter information comparison table of test cases of the approximate test operating system;
traversing and combining the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame;
and filling the test case frame by using a preset parameter set to generate a test case.
2. The method of claim 1, wherein the variant information comprises: variant sections and corresponding variant subsections;
correspondingly, the traversing combination of the key value pairs, the variant information and the combined filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system comprises the following steps:
generating a nested variant using the variant subsections;
and traversing and combining the key value pairs, the nested variants and the combined filtering information combination in a mode of combining a rectangular coordinate system and an inclined coordinate system.
3. The method according to claim 1, wherein the method further comprises:
and calling a test script to test the test case.
4. The method of claim 3, wherein the invoking the test script to test the test case comprises:
in the process of executing the test, if the test abnormality is caused by the test point, the execution process and the corresponding parameters are recorded and output to a preset log storage path.
5. The method of claim 1, wherein selecting the approximate test operating system comprises:
acquiring all operating systems of which the tests are completed;
querying the bottom layer application program interfaces of all the tested operating systems;
the operating system with the same underlying application program interface is divided into approximate operating systems.
6. The method of claim 1, wherein generating the test case framework comprises:
downloading and installing a test guide frame, and writing a storage path of the test case frame in an information file of the test guide frame;
correspondingly, filling the test case frame by using a preset parameter set to generate a test case;
and performing dependency package installation on the test case framework, and designating a parameter set to be imported through an import instruction.
7. The method of claim 6, wherein prior to downloading the installation test guidance frame, the method further comprises:
installing a virtualized component of the test operating system;
and checking whether the binary files and the header files in the operating system image meet the requirements of the test cases, and checking whether the application programs meet the requirements when the binary files and the header files meet the requirements.
8. The method according to claim 2, wherein the method further comprises:
randomly selecting the key value pairs, the variant information and the combined filtering information for combination, removing the traversal combination from the combination generated set, and generating a reverse test case frame;
randomly selecting parameters from a preset parameter set to fill the reverse test case frame, and generating the reverse test case frame.
9. A multi-system test case generation apparatus, comprising:
the reading module is used for reading key value pairs, variant information and combined filtering information in the test framework configuration file;
the selection module is used for selecting an approximate test operating system and generating a combined filter information combination according to a filter information comparison table of a test case of the approximate test operating system;
the combination module is used for performing traversal combination on the key value pairs, the variant information and the combination filtering information combination by utilizing a combination mode of a rectangular coordinate system and an inclined coordinate system to generate a test case frame;
and the generating module is used for filling the test case frame by utilizing a preset parameter set to generate a test case.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the multi-system test case generation method of any of claims 1-8.
CN202410057623.6A 2024-01-16 2024-01-16 Multi-system test case generation method, device and storage medium Active CN117573566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410057623.6A CN117573566B (en) 2024-01-16 2024-01-16 Multi-system test case generation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410057623.6A CN117573566B (en) 2024-01-16 2024-01-16 Multi-system test case generation method, device and storage medium

Publications (2)

Publication Number Publication Date
CN117573566A true CN117573566A (en) 2024-02-20
CN117573566B CN117573566B (en) 2024-04-12

Family

ID=89884866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410057623.6A Active CN117573566B (en) 2024-01-16 2024-01-16 Multi-system test case generation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117573566B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
CN107256148A (en) * 2017-05-24 2017-10-17 龙芯中科技术有限公司 The generation method and system at interface, electronic equipment and storage medium
CN107885660A (en) * 2017-10-31 2018-04-06 平安科技(深圳)有限公司 Fund system automatic test management method, device, equipment and storage medium
CN109992508A (en) * 2019-03-22 2019-07-09 恒生电子股份有限公司 Test exemple automation generation method, device and electronic equipment
CN110347085A (en) * 2019-07-16 2019-10-18 广州小鹏汽车科技有限公司 Automatization test system, method, vehicle and computer-readable medium
CN110659197A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application test case generation method and device and software test system
CN112052161A (en) * 2020-08-06 2020-12-08 中信银行股份有限公司 Interface testing method and device, electronic equipment and medium
CN113900922A (en) * 2020-06-22 2022-01-07 深圳兆日科技股份有限公司 Method, device, equipment and medium for testing application program interface of multi-platform application
CN114201382A (en) * 2020-09-17 2022-03-18 腾讯科技(深圳)有限公司 Test case generation method and device, storage medium and electronic equipment
CN115437925A (en) * 2022-08-18 2022-12-06 麒麟软件有限公司 Functional automation test tool for operating system
US20230055527A1 (en) * 2021-08-23 2023-02-23 Salesforce.Com, Inc. Risk-based root cause identification methods and related autobuild systems
CN116955148A (en) * 2023-04-04 2023-10-27 腾讯科技(深圳)有限公司 Service system testing method, device, equipment, storage medium and product
CN117033249A (en) * 2023-10-08 2023-11-10 卓望数码技术(深圳)有限公司 Test case generation method and device, computer equipment and storage medium
CN117112400A (en) * 2023-07-24 2023-11-24 东方通创新科技(重庆)有限公司 Automatic test case generation platform
CN117217163A (en) * 2023-09-19 2023-12-12 上海灵动微电子股份有限公司 Script-based SOC chip testing method

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
CN107256148A (en) * 2017-05-24 2017-10-17 龙芯中科技术有限公司 The generation method and system at interface, electronic equipment and storage medium
CN107885660A (en) * 2017-10-31 2018-04-06 平安科技(深圳)有限公司 Fund system automatic test management method, device, equipment and storage medium
CN110659197A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application test case generation method and device and software test system
CN109992508A (en) * 2019-03-22 2019-07-09 恒生电子股份有限公司 Test exemple automation generation method, device and electronic equipment
CN110347085A (en) * 2019-07-16 2019-10-18 广州小鹏汽车科技有限公司 Automatization test system, method, vehicle and computer-readable medium
CN113900922A (en) * 2020-06-22 2022-01-07 深圳兆日科技股份有限公司 Method, device, equipment and medium for testing application program interface of multi-platform application
CN112052161A (en) * 2020-08-06 2020-12-08 中信银行股份有限公司 Interface testing method and device, electronic equipment and medium
CN114201382A (en) * 2020-09-17 2022-03-18 腾讯科技(深圳)有限公司 Test case generation method and device, storage medium and electronic equipment
US20230055527A1 (en) * 2021-08-23 2023-02-23 Salesforce.Com, Inc. Risk-based root cause identification methods and related autobuild systems
CN115437925A (en) * 2022-08-18 2022-12-06 麒麟软件有限公司 Functional automation test tool for operating system
CN116955148A (en) * 2023-04-04 2023-10-27 腾讯科技(深圳)有限公司 Service system testing method, device, equipment, storage medium and product
CN117112400A (en) * 2023-07-24 2023-11-24 东方通创新科技(重庆)有限公司 Automatic test case generation platform
CN117217163A (en) * 2023-09-19 2023-12-12 上海灵动微电子股份有限公司 Script-based SOC chip testing method
CN117033249A (en) * 2023-10-08 2023-11-10 卓望数码技术(深圳)有限公司 Test case generation method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NOVI SETIANI ET AL.: "Literature Review on Test Case Generation Approach", ICSIM \'19: PROCEEDINGS OF THE 2ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND INFORMATION MANAGEMENT, 31 January 2019 (2019-01-31) *
邓琪: "基于搜索的自动化测试用例生成系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 01, 15 January 2024 (2024-01-15) *

Also Published As

Publication number Publication date
CN117573566B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US9063766B2 (en) System and method of manipulating virtual machine recordings for high-level execution and replay
Mouat Using Docker: Developing and deploying software with containers
US8949799B2 (en) Program log record optimization
US8930884B2 (en) Efficient extraction of software dependencies from program code
CN106559438B (en) Program uploading method and device based on target network platform
US20110307502A1 (en) Extensible event-driven log analysis framework
CN106909498B (en) Method and system for injecting fault into Java program
US11074154B2 (en) Identifying a source file for use in debugging compiled code
US9658842B2 (en) Application runtime expert for deployment of an application on multiple computer systems
US11200048B2 (en) Modification of codified infrastructure for orchestration in a multi-cloud environment
CN113885849B (en) Application development method and device based on industrial internet platform and terminal equipment
US20110231455A1 (en) Detailed Inventory Discovery on Dormant Systems
US20140075415A1 (en) Automatic use case generation from a parsed configuration file
CN111459499A (en) Program compiling method and device, computer storage medium and electronic equipment
CN110727476B (en) Method, device, equipment and storage medium for generating authorization configuration file
CN111176663B (en) Data processing method, device, equipment and storage medium of application program
CN117573566B (en) Multi-system test case generation method, device and storage medium
Peng et al. {GLeeFuzz}: Fuzzing {WebGL} Through Error Message Guided Mutation
US11182272B2 (en) Application state monitoring
US9400663B2 (en) Managing middleware using an application manager
CN110888641A (en) Automatic script generation method and device, server and storage medium
US11720348B2 (en) Computing node allocation based on build process specifications in continuous integration environments
CN115544518A (en) Vulnerability scanning engine implementation method and device, vulnerability scanning method and electronic equipment
CN109213569B (en) Auditing method and device based on virtual machine, server and storage medium
CN106897588B (en) Processing method and device of label function

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
GR01 Patent grant
GR01 Patent grant