CN114090442B - Automatic testing method and system for power cloud testing management platform - Google Patents

Automatic testing method and system for power cloud testing management platform Download PDF

Info

Publication number
CN114090442B
CN114090442B CN202111389108.0A CN202111389108A CN114090442B CN 114090442 B CN114090442 B CN 114090442B CN 202111389108 A CN202111389108 A CN 202111389108A CN 114090442 B CN114090442 B CN 114090442B
Authority
CN
China
Prior art keywords
test
case
detected
scene
case set
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.)
Active
Application number
CN202111389108.0A
Other languages
Chinese (zh)
Other versions
CN114090442A (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.)
Anhui Jiyuan Examination And Detection Technology Co ltd
Original Assignee
Anhui Jiyuan Examination And Detection Technology 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 Anhui Jiyuan Examination And Detection Technology Co ltd filed Critical Anhui Jiyuan Examination And Detection Technology Co ltd
Priority to CN202111389108.0A priority Critical patent/CN114090442B/en
Publication of CN114090442A publication Critical patent/CN114090442A/en
Application granted granted Critical
Publication of CN114090442B publication Critical patent/CN114090442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses an automatic testing method and system for an electric power cloud testing management platform, which comprises the steps of obtaining a data packet uploaded by an electric power system, analyzing the data packet to obtain attribute data and operating data of the electric power system; inputting the attribute data and the operation data into a use case classification model, and outputting a plurality of specified use cases; carrying out upper recombination on the specified use case, and constructing a scene to be detected of the power system; loading all test cases required by the scene to be detected based on the scene to be detected, and generating corresponding test scripts and test data based on all test cases of the scene to be detected; the automatic test method can automatically generate the scene to be detected, reduces the requirement on manpower, and is more intelligent in the test process and more convenient to operate.

Description

Automatic testing method and system for power cloud testing management platform
Technical Field
The invention belongs to the technical field of automatic testing, and particularly relates to an automatic testing method and system for an electric power cloud testing management platform.
Background
With the rapid development of society, the social industry is increasing day by day, and the business becomes more complex, so that the computer software application system for carrying business operation is required to adapt to the change of business and the change of customer requirements, and simultaneously, the software application system is enabled to be larger and larger in scale and more responsible for functions, and the change frequency is higher and higher, so that high requirements are provided for software testing, the testing task is heavy, and the testing quality is required to be high. Today, cost pressure exists in any project, traditional manual testing cannot completely meet the requirements of development of an enterprise IT system, the testing efficiency is improved, the cost of the manual testing is reduced, and the problem which has to be solved by an enterprise is solved.
From the current situation of realizing automatic testing in China, a few enterprises which can completely implement automatic testing and receive ideal expectation are provided, which means that implementing automatic testing is not easy, the existing automatic testing implementing threshold is high, the requirement on the capability of testers is high, the automation degree is low, and the implementation is difficult, so that the current electric power industry needs a set of automatic testing scheme customized according to domestic enterprises.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an automatic testing method and system for an electric power cloud test management platform.
The first aspect of the embodiment of the invention provides an automatic testing method for an electric power cloud test management platform, which comprises the following steps:
acquiring a data packet uploaded by an electric power system, and analyzing the data packet to acquire attribute data and operating data of the electric power system;
inputting the attribute data and the operation data into a use case classification model, and outputting a plurality of specified use cases;
carrying out upper recombination on the specified use cases, and constructing a scene to be detected of the power system;
loading all test cases required by the scene to be detected based on the scene to be detected, and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
and automatically testing the scene to be detected based on the generated test script and the test data, and generating a test report of the scene to be detected.
As a further optimization of the above scheme, the specific process of performing upper recombination on the specified use case includes:
acquiring the specified use case, and constructing the specified use case into a first use case set;
randomly selecting a specified use case in the first use case set, acquiring keywords of the selected specified use case, and screening out the specified use cases with the same keywords in the first use case set to construct a second use case set based on the keywords;
based on the relevance among different second example sets, acquiring a strong association chain among the second example sets;
matching the specified cases in the second case set on the strong association chain with the test cases in the to-be-tested scenes in the database;
and when the proportion of the number of the test cases matched with the specified cases in the second case set on the strong association chain in the scene to be detected is greater than a set threshold value, determining that the scene to be detected is the scene to be detected corresponding to the strong association chain.
As a further optimization of the above scheme, the specific construction steps of the second use case set are as follows:
s1, obtaining a keyword of a random specified use case in a first use case set, wherein the keyword comprises a use case title, a use case step, an expected effect and input data of the specified use case;
s2, screening out a second example set with the same keywords in the first example set based on the keywords;
and S3, repeating the steps S1 and S2 based on the screened first example set until all the specified cases in the first example set are screened, and obtaining a plurality of second example sets, wherein the specification in each second example set is used for testing the same performance of the power system.
As a further optimization of the above scheme, the selection process of the strong association chain is as follows:
step 1, selecting a second case set A, and calculating the relevance K of the second case set A and other second case sets;
step 2, acquiring a second case set with the relevance K greater than a threshold value N with the second case set A as a strongly-associated second case set of the second case set A;
step 3, taking each strongly-associated second case set of the second case set A as an associated path of the second case set A, and constructing an associated path graph;
step 4, calculating a strongly-associated second use case set of the tail end second use case set on different paths, and taking the strongly-associated second use case set as a path child node of the strongly-associated second use case set, wherein the second use case set existing before the tail end second use case set on the path where the tail end second use case set is located is removed when the strongly-associated second use case set of the tail end second use case set is calculated;
step 5, repeating the step 4 until the second case set at the tail end on each path of the association path diagram does not have a strong association second case set, and acquiring the constructed association path diagram;
step 6, selecting paths of which the number of the second use case sets in the associated path graph is larger than the preset number, comparing the second use case sets on different paths, and if two paths exist, and all the second use case sets on one path are subsets of all the second use case sets on the other path, reserving a longer path;
and 7, obtaining different paths which are the strong association chains of the second case set.
As a further optimization of the above solution, the calculation formula of the second example set relevance is as follows:
Figure BDA0003368167500000031
wherein K is ij Representing the degree of association between the ith and jth second case sets, n representing the number of second case sets, R i Representing the number of scenes to be detected including the ith second use case set, R j Representing the number of scenes to be detected including the jth second case set, R ij And representing the number of the scenes to be detected which simultaneously comprise the ith and the jth second case sets.
As a further optimization of the above scheme, constructing a test case execution tree based on the test sequence of each test case in the scene to be tested includes:
and under the condition that the first scene to be detected comprises the test resources of the first test case, determining that the test resources required by the test case to be executed in the second scene to be detected are consistent with the test resources of the first test case in the time period of executing the first test case in the first scene to be detected, and sending waiting control information to the test case execution thread in the second scene to be detected.
A second aspect of the embodiments of the present invention provides an automated testing system for an electric power cloud test management platform, where the system includes:
the data acquisition module is used for acquiring a data packet uploaded by the power system and analyzing the data packet to acquire attribute data and operating data of the power system;
the use case generation module is used for inputting the attribute data and the operation data into a use case classification model and outputting a plurality of specified use cases;
the scene construction module is used for carrying out upper recombination on the specified use cases and constructing a scene to be detected of the power system;
the pre-loading module is used for loading all test cases required by the scene to be detected based on the scene to be detected and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
and the automatic test module is used for carrying out automatic test on the scene to be detected based on the generated test script and the test data and generating a test report of the scene to be detected.
A third aspect of an embodiment of the present invention provides an electronic device, including:
the automatic testing method comprises a processor and a memory, wherein the memory is used for storing executable instructions of the processor, and the processor executes the executable instructions to realize the automatic testing method of the power cloud testing management platform.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where the instructions, when executed by a processor, implement the above-mentioned automated testing method for the power cloud test management platform
The automatic testing method and system for the power cloud testing management platform have the following beneficial effects:
the invention discloses an automatic test method and system for an electric power cloud test management platform, which comprises the steps of obtaining attribute data and operation data of an electric power system, reading a data packet sent by the electric power system, outputting a plurality of specified cases to construct a first case set based on different attribute data and operation data, selecting keywords of the specified cases to select and construct a second case set for the specified cases in the first case set, obtaining a strong association chain of the second case set according to the association of the second case set, and matching to obtain a to-be-detected scene of the electric power system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an overall flowchart of an automated testing method of an electric power cloud test management platform according to the present invention;
FIG. 2 is a flow chart of a specific process for performing a higher level reorganization on a given use case;
fig. 3 is an association path diagram of a second use case set.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention provides an automatic testing method for an electric power cloud testing management platform, which comprises the following steps:
acquiring a data packet uploaded by the power system, and analyzing the data packet to acquire attribute data and operating data of the power system;
inputting the attribute data and the operation data into a use case classification model, and outputting a plurality of specified use cases;
carrying out upper recombination on the specified use cases, and constructing a scene to be detected of the power system;
loading all test cases required by the scene to be detected based on the scene to be detected, and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
and automatically testing the scene to be detected based on the generated test script and the test data, and generating a test report of the scene to be detected.
Referring to fig. 1, in this embodiment, an electric power cloud test management platform obtains a data packet sent by an electric power system, analyzes the received data packet, reads attribute data and operation data of the electric power system, inputs the obtained attribute data and operation data into a trained case classification model for classification, obtains specified cases of the attribute data and the operation data, and can obtain a plurality of specified cases based on different attribute data and operation data. The appointed cases can be recombined according to the obtained logical relation among the appointed cases to construct a scene to be detected of the power system, then test scripts and test data of all the test cases in the scene to be detected can be obtained from a power cloud test management platform database, and different scenes to be detected of the power system can be detected through the test scripts and the test data. According to the method, the data uploaded by the power system are analyzed, and the corresponding scene of the power system when the data is generated is obtained, so that the automatic test of the power system is realized, the requirements of the automatic test on personnel capacity are lowered, the threshold is implemented, the automatic test is more intelligent, and the operation is more convenient.
Based on the method, the specific process of performing upper recombination on the specified use case comprises the following steps:
acquiring the specified use case, and constructing the specified use case into a first use case set;
randomly selecting a specified use case in the first use case set, acquiring keywords of the selected specified use case, and screening the specified use cases with the same keywords in the first use case set to construct a second use case set based on the keywords;
based on the relevance among different second example sets, acquiring a strong association chain among the second example sets;
matching the specified cases in the second case set on the strong association chain with the test cases in the scenes to be tested in the database;
and when the proportion of the number of the test cases matched with the specified cases in the second case set on the strong association chain in the scene to be detected is greater than a set threshold value, determining that the scene to be detected is the scene to be detected corresponding to the strong association chain.
Referring to fig. 2, in this embodiment, the to-be-detected scenes of different power systems include a plurality of different test cases, so that the corresponding to-be-detected scenes can be obtained by performing upper level recombination on the specified cases. Specifically, all specified cases are constructed into a first case set, then one specified case is randomly selected from the first case set, keywords of the selected specified case are obtained, wherein the keywords comprise but are not limited to case titles, case steps, expected effects, input data and the like of the specified cases, the specified case set with the same keywords as the selected specified cases is selected through traversing the whole first case set and constructed into a second case set, the relevance among different second case sets is calculated to construct a strong relevance chain among the second case sets, each second case set on the strong relevance chain respectively represents one type of specified cases, the specified cases of the second case set on the strong relevance chain are matched with the test cases of the power system to-be-detected scenes in the database, and the to-be-detected scene matched with the strong key chain is obtained.
Based on the method, the specific construction steps of the second example set are as follows:
s1, obtaining a keyword of a random specified use case in a first use case set, wherein the keyword comprises a use case title, a use case step, an expected effect and input data of the specified use case;
s2, screening out a second example set with the same keywords in the first example set based on the keywords;
and S3, repeating the steps S1 and S2 based on the screened first case set until all the designated cases in the first case set are screened, and obtaining a plurality of second case sets, wherein the designation in each second case set is used for testing the same performance of the power system.
Furthermore, the function of the power system needs to be completed by matching a plurality of steps together, the test cases are input data and expected results needed for describing each step, and the same type of test cases may exist in different scenes to be tested, wherein the elements of the test cases include, but are not limited to, case titles, case steps, expected effects and input data.
Based on the method, the selection process of the strong association chain is as follows:
step 1, selecting a second case set A, and calculating the relevance K of the second case set A and other second case sets;
step 2, acquiring a second case set with the relevance K greater than a threshold value N with the second case set A as a strongly-associated second case set of the second case set A;
step 3, taking each strongly-associated second case set of the second case set A as an associated path of the second case set A, and constructing an associated path graph;
step 4, calculating a strongly-associated second use case set of the tail end second use case set on different paths, and taking the strongly-associated second use case set as a path child node of the strongly-associated second use case set, wherein the second use case set existing before the tail end second use case set on the path where the tail end second use case set is located is removed when the strongly-associated second use case set of the tail end second use case set is calculated;
step 5, repeating the step 4 until a second case set at the tail end of each path of the association path diagram does not have a strong association second case set, and acquiring the constructed association path diagram;
step 6, selecting paths of which the number of the second use case sets in the associated path graph is larger than the preset number, comparing the second use case sets on different paths, and if two paths exist, and all the second use case sets on one path are subsets of all the second use case sets on the other path, reserving a longer path;
and 7, obtaining different paths which are the strong association chains of the second case set.
Referring to fig. 2, in this embodiment, a scene to be detected of an electric power system is composed of multiple types of test cases, the test cases in the same scene to be detected are logically related, each second case set in the present application represents one type of test case, a strong association chain of the second case set is constructed by calculating the association between each second case set, so that multiple different scenes to be detected can be obtained, wherein the specific construction method of the strong association chain of the second case is as follows, first, one second case set a needs to be selected, the association K between the second case set a and the other second case sets is calculated, wherein the second case set with the association K greater than a threshold N with the second case set a is the strong association second case set of the second case set a, each strong association second case set of the second case set a is used as a path of a, so that a basic association path diagram can be obtained, then, the strong association second case sets of the last second case sets on the paths of a are further calculated, the obtained by using the obtained strong association second case sets as strong association second case sets on a paths of a, and the second case sets are eliminated, and the second case sets are subjected to calculation before the calculation, and the second case sets are calculated, and the second case sets are eliminated, wherein the second case sets exist on the paths of the strong association second case sets.
And selecting paths of which the number of the second case sets in the associated path diagram is greater than a preset number according to the associated path diagram, wherein the preset number is preferably one half of the number of the test cases of the to-be-detected scene with the smallest number of the test cases in the to-be-detected scene, and if the number of the second case sets on the selected associated path is less than the preset number, the path cannot be matched with the corresponding to-be-detected scene, so that the selected path can be matched with the to-be-detected scene only if the number of the to-be-detected scenes on the path at least reaches the preset number, and then performing path screening on the selected path, namely if two paths exist, all the second case sets on one path are subsets of all the second case sets on the other path, reserving a longer path, and finally obtaining the path which is the strong associated chain of the second case set.
Referring to fig. 3, for example, the second use case set includes a, B, C, D, E, F, G, and H, one second use case set a is selected, and then the relevance between the second use case set a and the other second use case sets is calculated, where the second use case sets B, C, and D satisfy the condition, so that the second use case sets B, C, and D are strongly-associated second use case sets of the second use case set a, then the second use case sets B, C, and D are respectively used as a path direction of a, a strongly-associated second use case set of second use case sets at different path ends is calculated, for example, the path a-C, the strongly-associated second use case set of C needs to be calculated, and the strongly-associated second use case sets D and F of C are used as child nodes of C, a path is continuously constructed, and when the strongly-associated second use case set of C is calculated on the path a-C, the superior second use case set a of C needs to be screened out, the strongly-associated second use case sets do not exist until the end of each path is repeatedly calculated according to the calculation rule, and then the number of the path set is set as the preset graph, and the number of the preset path graph is set, and then the preset path number of the preset path is set including: the method comprises the following steps of A-C-D-G, A-C-F-H-E and A-D-C-F-H-E, wherein A-C-F-H-E is a subset of A-D-C-F-H-E, so that a longer path A-D-C-F-H-E is reserved, the obtained strongly associated chains are A-C-D-G and A-D-C-F-H-E, the key chains are screened, the repeated calculation process can be reduced, in the matching process of the scenes to be detected, the scenes to be detected of the strongly key chains A-C-F-H-E can be matched through the strongly key chains A-D-C-F-H-E, and therefore in order to simplify the calculation process, the selected path entry paths need to be screened out.
Based on the method, the calculation formula of the relevance of the second example set is as follows:
Figure BDA0003368167500000081
wherein K ij Representing the correlation between the ith and jth second case sets, n representing the number of second case sets, R i Representing the number of scenes to be detected including the ith second use case set, R j Representing the number of scenes to be detected including the jth second case set, R ij And representing the number of the scenes to be detected which simultaneously comprise the ith and the jth second case sets.
Furthermore, the number of scenes to be detected can be retrieved according to different second case sets to calculate the relevance between the second case sets, and specifically, the number R of scenes to be detected containing the ith second case set is obtained i And the number R of scenes to be detected containing the jth second case set j And the number R of scenes to be detected which simultaneously contain the ith and jth second case sets ij Then, the formulation of the association between the ith and jth second instance sets is:
Figure BDA0003368167500000082
if the association K between the ith and jth second instance sets ij If the value is larger than the threshold value N, the strong association between the ith and jth second example sets is shown.
Based on the method, the specific process of automatically testing the scene to be detected comprises the following steps:
acquiring test resources required in the test process of each test case in a scene to be detected;
constructing a test case execution tree diagram based on the test sequence of each test case in the scene to be detected;
and receiving test starting information, and sequentially testing the use cases of the nodes according to the direction from the root node of the tree diagram to the leaf node.
In this embodiment, different scenarios to be detected may be driven in parallel to perform testing, where each case in each scenario to be detected requires different testing resources and execution sequences, and based on this, an execution tree graph of the test cases in the scenario to be detected may be constructed.
Based on the method, the step of constructing the test case execution dendrogram based on the test sequence of each test case in the scene to be detected comprises the following steps:
and under the condition that the first scene to be detected comprises the test resources of the first test case, determining that the test resources required by the test case to be executed of the second scene to be detected are consistent with the test resources of the first test case in the time period of executing the first test case in the first scene to be detected, and sending waiting control information to the test case execution thread of the second scene to be detected.
Further, the test cases in different scenes may simultaneously require the same resource, so that resource allocation is required, if the first scene to be detected includes the test resource of the first test case, the first scene to be detected is in the time period for executing the first test case, and one to-be-executed test case in the second scene to be detected requires the same test resource as the first test case in the first scene to be detected, waiting information needs to be sent to the second scene to be detected, so that the second scene to be detected is executed in a delayed manner, and if the test cases in the first scene to be detected and the second scene to be detected simultaneously require the same test resource, the resource allocation is performed in advance based on the scene to be detected.
The embodiment of the invention provides an automatic test system for an electric power cloud test management platform, which comprises:
the data acquisition module is used for acquiring a data packet uploaded by the power system and analyzing the data packet to acquire attribute data and operating data of the power system;
the use case generation module is used for inputting the attribute data and the operation data into a use case classification model and outputting a plurality of specified use cases;
the scene construction module is used for carrying out upper recombination on the specified use cases and constructing a scene to be detected of the power system;
the pre-loading module is used for loading all test cases required by the scene to be detected based on the scene to be detected and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
and the automatic test module is used for carrying out automatic test on the scene to be detected based on the generated test script and the test data and generating a test report of the scene to be detected.
The system provided by the embodiment of the present invention has the same implementation principle and technical effect as the foregoing method embodiment, and for the sake of brief description, no mention is made in the system embodiment, and reference may be made to the corresponding contents in the foregoing method embodiment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
An embodiment of the present invention provides an electronic device, where the electronic device includes:
the automatic testing method comprises a processor and a storage, wherein the storage is used for storing executable instructions of the processor, and the processor executes the executable instructions to realize the automatic testing method of the power cloud testing management platform.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and other implementations are possible in practice. In addition, the connection between the processor and the memory may be a coupling or a direct coupling or a communication connection, or may be an indirect coupling or a communication connection between the processor and the memory through some communication interfaces, and may be in an electrical, mechanical or other form.
An embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the automated testing method for the power cloud test management platform is implemented.
A non-transitory computer-readable storage medium according to an embodiment of the present invention stores instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention.
The present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make various modifications without creative efforts from the above-described conception, and fall within the scope of the present invention.

Claims (9)

1. An automatic test method for an electric power cloud test management platform is characterized by comprising the following steps:
acquiring a data packet uploaded by the power system, and analyzing the data packet to acquire attribute data and operating data of the power system;
inputting the attribute data and the operation data into a use case classification model, and outputting a plurality of specified use cases;
carrying out upper recombination on the specified use case, and constructing a scene to be detected of the power system;
loading all test cases required by the scene to be detected based on the scene to be detected, and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
automatically testing the scene to be detected based on the generated test script and the test data, and generating a test report of the scene to be detected;
the specific process of carrying out upper recombination on the specified use case comprises the following steps:
acquiring the specified use case, and constructing the specified use case into a first use case set;
randomly selecting a specified use case in the first use case set, acquiring keywords of the selected specified use case, and screening the specified use cases with the same keywords in the first use case set to construct a second use case set based on the keywords;
based on the relevance among different second example sets, acquiring a strong association chain among the second example sets;
matching the specified cases in the second case set on the strong association chain with the test cases in the scenes to be tested in the database;
and when the proportion of the number of the test cases matched with the specified cases in the second case set on the strong association chain in the scene to be detected is larger than a set threshold value, determining the scene to be detected as the scene to be detected corresponding to the strong association chain.
2. The method according to claim 1, wherein the specific construction steps of the second use case set are as follows:
s1, obtaining a keyword of a random specified use case in a first use case set, wherein the keyword comprises a use case title, a use case step, an expected effect and input data of the specified use case;
s2, screening out a second example set with the same keywords in the first example set based on the keywords;
and S3, repeating the steps S1 and S2 based on the screened first case set until all the designated cases in the first case set are screened, and obtaining a plurality of second case sets, wherein the designated cases in each second case set are used for testing the same performance of the power system.
3. The method of claim 1, wherein the selection process of the strong association chain is:
step 1, selecting a second case set A, and calculating the relevance K of the second case set A and other second case sets;
step 2, acquiring a second case set with the relevance K greater than a threshold value N with the second case set A as a strongly-associated second case set of the second case set A;
step 3, taking each strongly-associated second case set of the second case set A as an associated path of the second case set A, and constructing an associated path graph;
step 4, calculating a strongly-associated second case set of the terminal second case set on different paths, and taking the strongly-associated second case set as a path child node of the strongly-associated second case set, wherein the second case set existing before the terminal second case set on the path where the terminal second case set is located is removed when the strongly-associated second case set of the terminal second case set is calculated;
step 5, repeating the step 4 until a second case set at the tail end of each path of the association path diagram does not have a strong association second case set, and acquiring the constructed association path diagram;
step 6, selecting paths of which the number of the second case sets in the associated path graph is larger than the preset number, comparing the second case sets on different paths, and if two paths exist, and all the second case sets on one path are subsets of all the second case sets on the other path, reserving a longer path;
and 7, obtaining different paths which are the strong association chains of the second case set.
4. The method according to claim 1, wherein the second instance correlation is calculated as follows:
Figure FDA0003888920210000021
wherein K is ij Representing the association between the ith and jth second instance sets, R i Representing the number of scenes to be detected including the ith second use case set, R j Representing the number of scenes to be detected including the jth second use case set, R ij And representing the number of the scenes to be detected which simultaneously comprise the ith and the jth second use case sets.
5. The method according to claim 1, wherein the specific process of performing the automated test on the scene to be detected comprises:
acquiring test resources required in the test process of each test case in a scene to be detected;
constructing a test case execution tree diagram based on the test sequence of each test case in the scene to be detected;
and receiving test starting information, and sequentially testing the use cases of the nodes according to the direction from the root node of the tree diagram to the leaf node.
6. The method according to claim 5, wherein constructing a test case execution tree based on the test sequence of each test case in the scene to be tested comprises:
and under the condition that the first scene to be detected comprises the test resources of the first test case, determining that the test resources required by the test case to be executed of the second scene to be detected are consistent with the test resources of the first test case in the time period of executing the first test case in the first scene to be detected, and sending waiting control information to the test case execution thread of the second scene to be detected.
7. An automated test system for an electric power cloud test management platform, the system comprising:
the data acquisition module is used for acquiring a data packet uploaded by the power system and analyzing the data packet to acquire attribute data and operating data of the power system;
the use case generation module is used for inputting the attribute data and the operation data into a use case classification model and outputting a plurality of specified use cases;
the scene construction module is used for carrying out upper recombination on the specified use cases and constructing a scene to be detected of the power system;
the pre-loading module is used for loading all test cases required by the scene to be detected based on the scene to be detected and generating corresponding test scripts and test data based on all test cases of the scene to be detected;
the automatic test module is used for carrying out automatic test on the scene to be detected based on the generated test script and the test data and generating a test report of the scene to be detected;
the specific process of the scene construction module comprises the following steps:
acquiring the specified use case, and constructing the specified use case into a first use case set;
randomly selecting a specified use case in the first use case set, acquiring keywords of the selected specified use case, and screening the specified use cases with the same keywords in the first use case set to construct a second use case set based on the keywords;
based on the relevance among different second example sets, acquiring a strong association chain among the second example sets;
matching the specified cases in the second case set on the strong association chain with the test cases in the scenes to be tested in the database;
and when the proportion of the number of the test cases matched with the specified cases in the second case set on the strong association chain in the scene to be detected is larger than a set threshold value, determining the scene to be detected as the scene to be detected corresponding to the strong association chain.
8. An electronic device, characterized in that the electronic device comprises:
a processor, a memory for storing processor executable instructions, the processor implementing a power cloud test management platform automated testing method as claimed in any one of claims 1-6 by executing the executable instructions.
9. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement a power cloud test management platform automated testing method according to any one of claims 1-6.
CN202111389108.0A 2021-11-22 2021-11-22 Automatic testing method and system for power cloud testing management platform Active CN114090442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111389108.0A CN114090442B (en) 2021-11-22 2021-11-22 Automatic testing method and system for power cloud testing management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111389108.0A CN114090442B (en) 2021-11-22 2021-11-22 Automatic testing method and system for power cloud testing management platform

Publications (2)

Publication Number Publication Date
CN114090442A CN114090442A (en) 2022-02-25
CN114090442B true CN114090442B (en) 2023-01-31

Family

ID=80303032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111389108.0A Active CN114090442B (en) 2021-11-22 2021-11-22 Automatic testing method and system for power cloud testing management platform

Country Status (1)

Country Link
CN (1) CN114090442B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945852B1 (en) * 2006-05-19 2011-05-17 Washington State University Research Foundation Strategies for annotating digital maps
CN103412819B (en) * 2013-08-28 2016-01-27 北京信息科技大学 A kind of file convertor method of testing based on correlation analysis and device
CN108255653B (en) * 2018-01-02 2021-05-04 深圳壹账通智能科技有限公司 Product testing method and terminal thereof
CN108491326B (en) * 2018-03-21 2024-02-02 重庆金融资产交易所有限责任公司 Test behavior a recombination process apparatus and storage medium
CN109684209A (en) * 2018-12-17 2019-04-26 北京奇虎科技有限公司 A kind of method for generating test case, device and electronic equipment
CN111881022A (en) * 2020-07-07 2020-11-03 上海中通吉网络技术有限公司 Method, device and equipment for generating test case based on test scene

Also Published As

Publication number Publication date
CN114090442A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US10073756B2 (en) Optimizing a virtualized computing environment
CN107861876A (en) Method of testing, device, computer equipment and readable storage medium storing program for executing
CN110380925B (en) Port selection method and system in network equipment detection
CN110287104A (en) Method for generating test case, device, terminal and computer readable storage medium
CN111859047A (en) Fault solving method and device
CN107203464B (en) Method and device for positioning service problem
CN112559316A (en) Software testing method and device, computer storage medium and server
CN115827436A (en) Data processing method, device, equipment and storage medium
CN107402878B (en) Test method and device
CN111367782B (en) Regression testing data automatic generation method and device
CN113360353B (en) Test server and cloud platform
CN114090442B (en) Automatic testing method and system for power cloud testing management platform
CN111782507B (en) Data testing method and device, storage medium and electronic equipment
CN112035286A (en) Method and device for determining fault cause, storage medium and electronic device
CN115297048B (en) Routing path generation method and device based on optical fiber network
CN113377683A (en) Software test case generation method, system, device, terminal, medium and application
CN113794732A (en) Method, device, equipment and storage medium for deploying simulated network environment
Budić et al. Optimizing Mobile Radio Access Network Spectrum Refarming Using Community Detection Algorithms
CN111290966B (en) Test case decomposition and combination method and system for improving android application test coverage rate
CN117610970B (en) Intelligent evaluation method and system for data migration work
CN112884201B (en) Non-intrusive load monitoring method, device and system based on artificial intelligence algorithm
US20230052848A1 (en) Initialize optimized parameter in data processing system
CN116340118A (en) Performance test data processing method, device, apparatus, medium and program product
CN114861447A (en) Method and device for screening simulation experiment factors of evaluative experiment
CN117931497A (en) Method, device, equipment and storage medium for processing component faults

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