CN107992409A - Method for generating test case, device, computer equipment and storage medium - Google Patents

Method for generating test case, device, computer equipment and storage medium Download PDF

Info

Publication number
CN107992409A
CN107992409A CN201711165854.5A CN201711165854A CN107992409A CN 107992409 A CN107992409 A CN 107992409A CN 201711165854 A CN201711165854 A CN 201711165854A CN 107992409 A CN107992409 A CN 107992409A
Authority
CN
China
Prior art keywords
configuration
file
test
function
configuration file
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
CN201711165854.5A
Other languages
Chinese (zh)
Other versions
CN107992409B (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.)
Ping An Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
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 Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201711165854.5A priority Critical patent/CN107992409B/en
Publication of CN107992409A publication Critical patent/CN107992409A/en
Application granted granted Critical
Publication of CN107992409B publication Critical patent/CN107992409B/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

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)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of method for generating test case, device, server and storage medium.The method for generating test case includes:The corresponding current script of test object is obtained, current script is scanned, determines the corresponding multiple function points of test object;The corresponding history script of test object is obtained, determines current script with respect to the code that history script has differences;The code having differences includes multiple functions;The first mapped file prestored is obtained, the multiple function names and the mapping relations of function point recorded according to the first mapped file, determine the function point that function association influences, and will associate the function point influenced as function point to be measured;The second mapped file prestored is obtained, target component corresponding with function point to be measured is obtained in the second mapped file;Target component is inputted into automated test frame, test case is generated using automated test frame.This method quickly can comprehensively determine the function point to be measured of test object.

Description

Method for generating test case, device, computer equipment and storage medium
Technical field
The present invention relates to technical field of measurement and test, more particularly to method for generating test case, device, computer equipment and deposits Storage media.
Background technology
New version software is after completing to develop, in order to ensure the stability of software and accuracy etc., it is necessary to be carried out to software Test.New version software is as test object, when testing test object, it is necessary to function point to be measured to test object Analyzed, test object is tested according to function point design test case to be measured, then using the test case of design.Pass System mode, by manually analyzing the function point to be measured of test object, not only reduces testing efficiency, and test leakage easily occur Or the phenomenon surveyed more, cause the new version software finally reached the standard grade of poor quality.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of quickly comprehensively to determine treating for test object Method for generating test case, device, computer equipment and the storage medium of brake point.
A kind of method for generating test case, including:
The corresponding current script of test object is obtained, the current script is scanned, determines the test object pair The multiple function points answered;
The corresponding history script of test object is obtained, determines what the current relatively described history script of script had differences Code;The code having differences includes multiple functions;
Obtain the first mapped file for prestoring, first mapped file have recorded multiple function names and function point Mapping relations, the function point of the function association influence, the function point that the association is influenced are determined according to the mapping relations As function point to be measured;
Obtain the second mapped file for prestoring, second mapped file have recorded multiple function points to be measured and right The target component answered, obtains target component corresponding with the function point to be measured in second mapped file;
The target component is inputted into automated test frame, test case is generated using automated test frame.
In one of the embodiments, before the step of acquisition test object corresponding current script, further include:
Corresponding first configuration file of the test object actual motion environment is obtained, and the test object is accordingly surveyed Corresponding second configuration file in test ring border;First configuration file and the second configuration file include multiple configuration items respectively;Institute Stating configuration item includes required configuration item;
Configuration data in first configuration file and the second configuration file is contrasted line by line, obtains configuration data The configuration item having differences;
The corresponding more new link of configuration item being had differences described in acquisition, is led to using more new link generation configuration change Know, configuration change notice is sent to the corresponding monitor terminal of test environment, monitor terminal is passed through the selected more new link The more new command of the corresponding configuration item of generation;
When receiving the more new command of configuration item, using the configuration data in the first configuration file to the second configuration file The corresponding configuration data of middle corresponding configuration item is updated, and second configuration file is had with the first configuration file identical Required configuration item.
In one of the embodiments, before the step of acquisition test object corresponding current script, further include:
The first verification request is received, according to the described first verification request display verification page;The verification page includes more A verification group, the verification group include the file identification of corresponding first configuration file of test object actual motion environment, and The file identification of corresponding second configuration file of the corresponding test environment of test object;First configuration file and the second configuration text Part includes multiple configuration items respectively;The configuration item includes required configuration item;
The selected operation of one or more verification groups is obtained, utilizes the text of selected corresponding first configuration file of verification group Part identifies and the file identification of the second configuration file generation the second verification request;
Described second verification request is sent to server, makes file identification of the server according to the first configuration file The first configuration file and the second configuration file are extracted with the file identification of the second configuration file, the first configuration file and second are matched somebody with somebody The configuration data put in file is contrasted line by line, obtains the configuration item having differences, and utilize the configuration item pair having differences The configuration data generation more new command answered;
When receiving the more new command, the configuration data carried using the more new command is in the second configuration file The corresponding configuration data of corresponding configuration item is updated, and makes second configuration file must with identical with the first configuration file Need configuration item.
In one of the embodiments, the current script includes the function name of multiple functions;It is described to determine the test The step of object corresponding multiple function points, including:
Obtain the call relation of multiple functions in the current script;
According to the call relation between multiple functions, it is corresponding to build the test object using the function name of multiple functions Multiway tree, the function relation figure using the multiway tree as test object;
According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;Institute Stating functional relationship figure includes multiple function points.
In one of the embodiments, the function point in the functional relationship figure is systemic-function point;In the definite institute After the step of stating test object corresponding multiple function points, further include:Obtain the corresponding history test number of the test object According to the historical test data includes multiple function points;The function point includes systemic-function point and Elementary Function point;
The functional relationship figure is reconstructed according to historical test data, makes the functional relationship figure of reconstruct include multiple systems System function point and the Elementary Function point of corresponding connection;
It is described that the step of function point of influence is respectively associated in multiple functions is determined according to first mapped file, including: Determine that the Elementary Function point of influence is respectively associated in multiple functions according to first mapped file;
The systemic-function point that the Elementary Function point that obtained in the functional relationship figure influences with association is connected.
A kind of Test cases technology device, described device include:
Variance analysis module, for obtaining the corresponding current script of test object, is scanned the current script, really Determine the corresponding multiple function points of the test object;The corresponding history script of test object is obtained, determines the current script phase The code being had differences to the history script;The code having differences includes multiple functions;
Function point determining module, for obtaining the first mapped file prestored, the first mapped file have recorded multiple The mapping relations of function name and function point, the function point of function association influence is determined according to mapping relations, will associate the work(influenced It can put and be used as function point to be measured;
Test cases technology module, for obtaining the second mapped file prestored, the second mapped file have recorded more A function point to be measured and corresponding target component, obtain target ginseng corresponding with function point to be measured in the second mapped file Number;The target component is inputted into automated test frame, test case is generated using automated test frame.
In one of the embodiments, the current script includes the function name of multiple functions;The variance analysis module It is additionally operable to obtain the call relation of multiple functions in the current script;According to the call relation between multiple functions, using more The function name of a function builds the corresponding multiway tree of the test object, the functional relation using the multiway tree as test object Figure;According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;The function Graph of a relation includes multiple function points.
In one of the embodiments, described device further includes test environment update module, please for receiving the first verification Ask, according to the described first verification request display verification page;The verification page includes multiple verification groups, and the verification group includes The file identification of corresponding first configuration file of test object actual motion environment, and the corresponding test environment of test object correspond to The second configuration file file identification;First configuration file and the second configuration file include multiple configuration items respectively;Institute Stating configuration item includes required configuration item;The selected operation of one or more verification groups is obtained, it is corresponding using selected verification group The file identification of the file identification of first configuration file and the second configuration file generation the second verification request;Described second is verified Request is sent to server, makes the server according to the file identification of the first configuration file and the files-designated of the second configuration file Know the first configuration file of extraction and the second configuration file, the configuration data in the first configuration file and the second configuration file is carried out Contrast line by line, obtain the configuration item having differences, and refer to using the corresponding configuration data generation renewal of the configuration item having differences Order;When receiving the more new command, using the configuration data that the more new command carries to corresponding in the second configuration file The corresponding configuration data of configuration item is updated, and second configuration file is matched somebody with somebody with identical with the first configuration file Put item.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the processor realize the Test cases technology side provided in one embodiment of the invention when performing described program The step of method.
A kind of computer-readable recording medium, is stored thereon with computer program, which realizes when being executed by processor The step of method for generating test case provided in one embodiment of the invention.
Above-mentioned method for generating test case, device, computer equipment and storage medium, by working as to test object is corresponding Preceding script is scanned, it may be determined that the achievable multiple function points of test object;The corresponding current script of contrast test object With history script, current script can be obtained with respect to the code that history script has differences;According to default first mapped file, The all functions point that the script association having differences influences can be determined, so as to quick and comprehensive definite test object pair The function point to be measured answered;After determining function point to be measured, corresponding target component can be obtained according to default second mapped file, Target component input automated test frame can be quickly generated to the test case of test object, test case life can be improved Into efficiency.
Brief description of the drawings
Fig. 1 is the method for generating test case applied environment figure in one embodiment;
Fig. 2 is the flow chart of method for generating test case in one embodiment;
Fig. 3 is the function relation figure of the method for generating test case in one embodiment;
Fig. 4 is the functional relationship figure of the method for generating test case in one embodiment;
Fig. 5 is the surface chart that the page is verified in the method for generating test case in one embodiment;
Fig. 6 is the structure diagram of Test cases technology device in one embodiment;
Fig. 7 is the structure diagram of one embodiment Computer equipment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes Say, without departing from the scope of the invention, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both clients, but it is not same visitor Family end.
The application provides a kind of method for generating test case, can be applied in application environment as shown in Figure 1.Wherein, Test terminal 102 is connected by network with server 104.Test terminal 102 can be desktop computer, and laptop, put down At least one of plate computer, smart mobile phone, but be not limited thereto.Server 104 can be independent physical server, It can be the server cluster that multiple physical servers are formed.Terminal 102 is tested using new version software as test object, in phase Answer and the corresponding test case of the test object is generated in test environment.Before test case is generated, test terminal 102 can be to Server 104 sends verification request, server 104 is asked according to verification, corresponding using test object actual motion environment First configuration file is updated corresponding second configuration file of the corresponding test environment of test object, to ensure that test object can With in the test environment normal operation.Test terminal 102 obtains the corresponding current script of test object and goes through in test environment History script, by being scanned to current script, it may be determined that the achievable multiple function points of test object.Test terminal 102 Current script is contrasted with respect to the code that history script has differences, can determine that and have differences according to default first mapped file The function point that influences of associated codes, so as to the quick and comprehensive definite corresponding function point to be measured of test object.True After fixed function point to be measured, test terminal 102 obtains corresponding target component, such as input ginseng according to default second mapped file Number, output parameter, desired output and testing procedure etc., survey can be quickly generated by target component input automated test frame The test case of object is tried, so as to improve Test cases technology efficiency.
In one embodiment, as shown in Figure 2, there is provided a kind of method for generating test case, is applied to survey in this way Illustrated exemplified by examination terminal, specifically include following steps:
Step 202, the corresponding current script of test object is obtained, current script is scanned, determines test object pair The multiple function points answered.
Step 204, the corresponding history script of test object is obtained, determines what current script had differences with respect to history script Code;The code having differences includes multiple functions.
Step 206, the first mapped file prestored is obtained, the first mapped file have recorded multiple function names and function The mapping relations of point, the function point of function association influence is determined according to mapping relations, will associate the function point influenced as to be measured Function point.
New version software is needed by system testing before reaching the standard grade.System testing is using new version software as computer One part of system, combines with other parts in computer system, under actual motion environment to computer system into It is capable a series of to be strictly effectively tested.The content of system testing mainly includes functional test and robustness testing.The present embodiment Using new version software as test object.It is actual when carrying out functional test to test object, can be with order to improve testing efficiency Only new version software is tested with respect to the function point that legacy version software has differences, this just needs corresponding to test object Current script and history script are parsed.
The corresponding current script of test object can be understood as the script of new version software, the corresponding history foot of test object Originally it can be understood as the script of legacy version software.When needing to test test object, terminal-pair test object pair is tested The current script answered is scanned, it may be determined that the corresponding multiple function points of test object, function point refer to that new version software can With the function title of the multiple functions of realization.For example, the corresponding multiple function points of the software of accepting insurance of new version can include accept, Audit, accept insurance.
In one embodiment, current script includes the function name of multiple functions;Determine the corresponding multiple work(of test object Can put the step of, including:Obtain the call relation of multiple functions in current script;According to the call relation between multiple functions, Using the corresponding multiway tree of function name structure test object of multiple functions, the functional relation using multiway tree as test object Figure;According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;Functional relationship Figure includes multiple function points.
Terminal is tested by being scanned to current script, the function name for multiple functions that current script includes can be obtained And the call relation between multiple functions.According to the function name of multiple functions and its between call relation, server passes through Node identification function name, the call relation between function, the corresponding letter of structure test object are identified by the line between node Number graph of a relation.As shown in figure 3, the function relation figure can be multiway tree.Multiway tree includes multiple nodes, and each node corresponds to one A function name, the call relation between directed line segment representative function between node.For example, function 1 is used as principal function, performing During current script, 1 call function 2 of function and function 3.It should be noted that there may be what is repeatedly adjusted back between multiple functions Situation, such as 9 corresponding function of function to accept, 13 corresponding function of function is examination & verification, if the implementing result of function 13 is examination & verification Not by then returning to function 9.
Testing terminal can be corresponding by SVN (Subversion, Version Management Software instrument) acquisition new version softwares Code handoffs daily record.The a plurality of annotation information of the corresponding current script of code handoffs log recording test object.Test object Corresponding current script can change to obtain on corresponding history Script Basics.Annotation information includes corresponding to test object History script modification record and modification content.Test terminal can utilize SVNKIT (Java SVN, the SVN based on JAVA Client library) corresponding to test object current script and code handoffs daily record parse, current script is obtained with respect to history The code that script has differences.The code having differences includes multiple functions.It is readily appreciated that, test terminal can also use other Instrument obtains current script with respect to the code that history script has differences, such as Beyond Compare (a kind of code comparison's instrument) Or Ultra Compare etc., this is not restricted.
Test terminal has been pre-stored the first mapped file, and the first mapped file have recorded reflecting for multiple function names and function point Penetrate relation.Function relation figure can be converted to functional relationship figure by test terminal according to the first mapped file.It is readily appreciated that, the work( Energy graph of a relation can also be multiway tree.As shown in figure 4, test terminal, which retains function relation figure, corresponds to multiple nodes in multiway tree Connection relation, corresponding function point is replaced with by each node by function name, and adds start node and end node.Function is closed The directed line segment that system is schemed in corresponding multiway tree between multiple nodes represents the inheritance between function.Terminal is tested according to the One mapped file determines the function point that the function association having differences influences in functional relationship figure, and will associate the function of influencing Point is labeled as function point to be measured.
Step 208, obtain the second mapped file prestored, the second mapped file have recorded multiple function points to be measured with And corresponding target component, target component corresponding with function point to be measured is obtained in the second mapped file.
Test terminal has also been pre-stored the second mapped file, and the second mapped file have recorded multiple function points to be measured and right The target component answered.Target component includes input parameter, output parameter, desired output and testing procedure etc..For example, when test When object generates software for the document of new version, new version document generates software and generates software with respect to legacy version document, to document Output format adjusted, test terminal determine that function point to be measured includes " document output " in the manner described above.This is to be measured The corresponding input parameter of function point can be multiple document marks.Testing procedure can be:(1) identified according to document in legacy version The corresponding first database of document generation software extracts corresponding document data, and document data include multiple field names and field Value;(2) using the document data extracted as base-line data the second database of typing in the form of Excel forms;(3) using new Version document generates Software Create document, the corresponding document data of the document is obtained, using newly-generated document data as existing The second database of data inputting;(4) the multiple field names and field value in base-line data and available data are contrasted, are obtained in the presence of poor Different field.Output parameter can be the field being had differences in base-line data and available data.Desired output can be existing There are the data consistent with base-line data.
Step 210, target component is inputted into automated test frame, test case is generated using automated test frame.
After target component is determined, target component is inputted automated test frame by test terminal.Automated test frame For the frame applied to automatic test, by one or more automatic test basic modules, automatic test management module, from The instrument set of the compositions such as dynamicization test statistics module.Automated test frame utilizes target component, and generation test object corresponds to Test case.Test terminal can test test object using test case, that is, test terminal according to test case In testing procedure, by input parameter input test object, obtain the corresponding output parameter of test object, by the output parameter with Desired output is matched.When test case is finished, test terminal generation test report.Test report have recorded survey The corresponding test of examination object passes through or the test result of test crash.It is readily appreciated that, when output parameter is consistent with desired output When, represent successful match, test object passes through functional test.
In the present embodiment, by being scanned to the corresponding current script of test object, it may be determined that test object can be real Existing multiple function points;The corresponding current script of contrast test object and history script, can obtain current script with respect to history The code that script has differences;According to default first mapped file, it may be determined that the institute that the script association having differences influences It is functional, so as to the quick and corresponding function point to be measured of comprehensive definite test object;, can after determining function point to be measured , can be fast by target component input automated test frame to obtain corresponding target component according to default second mapped file Fast-growing can improve Test cases technology efficiency into the test case of test object.
In one embodiment, the function point in functional relationship figure is systemic-function point;It is corresponding in definite test object After the step of multiple function points, further include:The corresponding historical test data of test object is obtained, historical test data includes more A function point;Function point includes systemic-function point and Elementary Function point;Weight is carried out to functional relationship figure according to historical test data Structure, makes the functional relationship figure of reconstruct include multiple systemic-function points and the Elementary Function point of corresponding connection;According to the first mapping File determines the step of function point of influence is respectively associated in multiple functions, including:Multiple functions are determined according to the first mapped file The Elementary Function point of influence is respectively associated;The system work(that the Elementary Function point that obtained in functional relationship figure influences with association is connected Can point.
In practical operation, the corresponding current script of test object may compare with respect to the size of code that history script has differences Less, or the code content having differences is fewer, for example, the code having differences is a circulation language in a function Sentence.Since the function point in functional relationship figure is systemic-function point.Systemic-function point refers to that macroscopically new version software can The function of realization, for example, such as the example above, the systemic-function point for software of accepting insurance includes accepting, audit and accepting insurance.Less change More code may can't influence systemic-function point.Therefore, in this case, testing terminal may according to the first mapped file The function point that the function association having differences influences can not be directly determined in functional relationship figure, and then is caused to the part variation The test leakage of code.
In order to solve the problems, such as above-mentioned test leakage, test terminal is using the historical test data of test object to functional relationship figure Refined.Specifically, test terminal obtains the historical test data of test object.Historical test data refers to legacy version software Test data, including multiple systemic-functions point and corresponding Elementary Function point.Elementary Function point refers to correspondence system function The title of the subfunction of point, for example, in the example above, the corresponding Elementary Function point of systemic-function point " examination & verification " for software of accepting insurance It can include verification, count and collect.It is readily appreciated that, Elementary Function point there can also be corresponding subelement function point, such as The corresponding subelement function point of Elementary Function point " verification " can include completeness check and legitimacy verifies etc..Test terminal root Functional relationship figure is reconstructed according to historical test data, makes the functional relationship figure of reconstruct not only include multiple systemic-function points, Further include the corresponding Elementary Function point of systemic-function point.
Terminal is tested according to the first mapped file, the function that can determine to have differences in the functional relationship figure of reconstruct closes Join the Elementary Function point influenced.New version software needed before reaching the standard grade by repeatedly test, as unit testing, integration testing, System testing and Acceptance Test etc., different test phases have different test cases.Use can only obtain according to Elementary Function point In the test case of unit testing, and the test case for system testing can not be obtained.The function that terminal is tested in reconstruct is closed It is the systemic-function that backtracking is connected with the Elementary Function point that association influences upwards according to the connection relation between multiple nodes in figure Point, function point to be measured is labeled as by the systemic-function point.
In the present embodiment, functional relationship figure is refined using the historical test data of test object so that Bu Huiying The smaller difference code of acoustic system function, also can directly determine that its association influences according to the first mapped file in functional relationship figure Systemic-function point, so as to effectively solve the problems, such as because can not determine association influence systemic-function point caused by test leakage.
In one embodiment, before the step of acquisition test object corresponding current script, further include:Obtain test Corresponding first configuration file of object actual motion environment, and the corresponding second configuration text of the corresponding test environment of test object Part;First configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes required configuration item;Match somebody with somebody to first The configuration data put in file and the second configuration file is contrasted line by line, obtains the configuration item that configuration data has differences;Obtain The corresponding more new link of the configuration item having differences is taken, using more new link generation configuration change notice, configuration change is notified The renewal that sending to the corresponding monitor terminal of test environment, makes monitor terminal by selecting the corresponding configuration item of more new link generation refers to Order;When receiving the more new command of configuration item, using the configuration data in the first configuration file to phase in the second configuration file Answer the corresponding configuration data of configuration item to be updated, the second configuration file is configured with identical with the first configuration file .
Test environment refers to for computer hardware, software, the network equipment, history necessary to completing Experience of Software Testing Work The general name of data.In order to ensure to test effect, the test environment of test object should be as close possible to the actual motion of test object Environment.Only test environment has specific configuration data in actual motion environment, and test object could be in the test environment just Often start.Actual test process, tester usually in the test environment of legacy version software, survey new version software Examination.Since the test environment applied to legacy version software may be not particularly suited for new version software, often there is new version software and exist Can not normally start in the test environment, or start after a certain afunction situation.
In order to solve the problems, such as that test environment is inapplicable, before using test environment generation test case, test is eventually End is when getting new version software, automatically using corresponding first configuration file of new version software actual motion environment to test Corresponding second configuration file of environment is updated.Specifically, it is corresponding to test terminal acquisition test object actual motion environment First configuration file, and corresponding second configuration file of test environment.First configuration file and the second configuration file wrap respectively Include multiple configuration items.Wherein, configuration item includes required configuration item.Must configuration item refer to that test environment normal operation is essential Configuration item.Configuration data in test the first configuration file of terminal-pair and the second configuration file is read line by line respectively, and Stored to MAP (a kind of data type) and gathered in the form of key-value pair.MAP set includes multiple key-value pairs, each key-value pair pair Answer a configuration item.Key-value pair includes key name and corresponding key assignments, and key name corresponds to the title of configuration item, and key-value pair answers configuration item Configure parameter.The corresponding MAP of first configuration file is gathered MAP corresponding with the second configuration file and gathers by test terminal to carry out pair Than obtaining the configuration item having differences.It should be noted that the configuration item having differences not only includes the configuration changed , i.e., the configuration item that key name is identical but corresponding key assignments is different.The configuration item having differences further includes the configuration item of missing, i.e., and Two configuration files are with respect to the configuration item that the first configuration file lacks.
Test terminal is using the configuration item generation configuration change notice having differences, using shapes such as short message, mail or daily records Formula sends configuration change notice to the corresponding monitor terminal of test environment.Wherein, configuration change notice includes multiple in the presence of poor The corresponding more new link of different configuration item.Test environment related personnel can be had differences by monitor terminal to multiple The necessity that configuration item is updated is judged, when finding that some configuration item belongs to required configuration item, can be clicked on corresponding The corresponding more new link of configuration item.Monitor terminal sends renewal request, server is according to more according to the clicking operation to server The configuration item mark that the needs that new request carries are added or changed, extracts the configuration number of corresponding configuration item in the first configuration file According to.The configuration data generation more new command that server by utilizing is extracted, more new command is sent to test terminal.Test terminal root Configuration data the second configuration file corresponding to test environment carried according to more new command carries out incremental update, so that second matches somebody with somebody Putting file has the required configuration item identical with the first configuration file, so as to ensure that test object can be in the test environment just Often start.
It is automatically corresponding using new version software actual motion environment when getting new version software in the present embodiment First configuration file the second configuration file corresponding to test environment is updated, and can make test environment as close possible to test Its actual running environment, improves test effect;To test environment with respect to the configuration item that new version software actual motion environment lacks It is replenished in time so that even if software version updates, corresponding configuration data changes, and can still use same test Environment.
In one embodiment, before the step of acquisition test object corresponding current script, further include:Receive first Verification request, according to the first verification request display verification page;The verification page includes multiple verification groups, and verification group includes test pair As the file identification of corresponding first configuration file of actual motion environment, and the corresponding test environment of test object corresponding second The file identification of configuration file;First configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes must Need configuration item;The selected operation of one or more verification groups is obtained, utilizes selected corresponding first configuration file of verification group The file identification of file identification and the second configuration file generation the second verification request;Second verification request is sent to server, Make server according to the file identification of the file identification of the first configuration file and the second configuration file extract the first configuration file and Second configuration file, contrasts the configuration data in the first configuration file and the second configuration file line by line, obtains in the presence of poor Different configuration item, and utilize the corresponding configuration data generation more new command of the configuration item having differences;When receiving more new command When, the corresponding configuration data of corresponding configuration item in the second configuration file is carried out more using the configuration data that more new command carries Newly, make the second configuration file that there is identical required configuration item with the first configuration file.
Except when new version software is issued, the second configuration file corresponding to test environment is updated, test terminal is also The the first verification request that can be initiated at any time according to tester, the second configuration file corresponding to test environment are updated. Specifically, test terminal receives the first verification request, according to the first verification request display verification page.As shown in figure 5, verification page Face shows the file identification of corresponding first configuration file of multiple test object actual motion environment in a manner of drop-down menu, with And the file identification of corresponding second configuration file of the corresponding test environment of the test object.File identification can be file name, Reference number of a document etc..Test terminal and obtain tester in the verification page to the file identification of the first configuration file and the second configuration text The selected operation of the file identification of part, selected two file identifications form a verification group.According to tester in verification page The different selections in face, can form multiple verification groups.Terminal is tested using selected corresponding first configuration file of verification group The file identification of file identification and the second configuration file generation the second verification request, the second verification request is sent to server.
The file identification of the first configuration file and the text of the second configuration file that server is carried according to the second verification request Part identifies, and the first configuration file and the second configuration file is extracted, to the configuration number in the first configuration file and the second configuration file According to being contrasted line by line, the configuration item having differences is obtained, and utilize the corresponding configuration data generation of the configuration item having differences More new command, more new command is sent to test terminal.Terminal is tested using the configuration data of more new command carrying to accordingly matching somebody with somebody Put the corresponding configuration data of item and carry out incremental update so that the second configuration file have it is identical with the first configuration file required Configuration item, so as to ensure that test object can normally start in the test environment.In another embodiment, as shown in figure 5, clothes Configuration item comparing result is returned to test terminal by business device, to facilitate tester to understand configuration item missing or the feelings of change in time Condition.
In the present embodiment, tester can initiate the request being updated to test environment at any time, and by verifying page Face unrestricted choice needs the verification group contrasted so that the renewal that the second configuration file is corresponded to test environment is more flexible;Utilize Corresponding first configuration file of new version software actual motion environment the second configuration file corresponding to test environment is updated, Test environment can be made to improve test effect as close possible to its actual running environment is tested;To test environment with respect to new version The configuration item that software actual motion environment lacks is replenished in time so that even if software version updates, corresponding configuration data Change, can still use same test environment.In addition, the first configuration file and the second configuration file are subjected to contrast hair The work of the configuration item now changed turns to be carried out by server, can also reduce the resource occupation to testing terminal.
In one embodiment, as shown in Figure 6, there is provided a kind of Test cases technology device, including:Variance analysis module 602, function point determining module 604 and Test cases technology module 606, wherein:
Variance analysis module 602, for obtaining the corresponding current script of test object, is scanned current script, really Determine the corresponding multiple function points of test object;The corresponding history script of test object is obtained, determines current script with respect to history foot Originally the code having differences;The code having differences includes multiple functions.
Function point determining module 604, for obtaining the first mapped file prestored, the first mapped file have recorded more The mapping relations of a function name and function point, the function point of function association influence is determined according to mapping relations, will associate what is influenced Function point is as function point to be measured.
Test cases technology module 606, for obtaining the second mapped file prestored, the second mapped file have recorded Multiple function points to be measured and corresponding target component, obtain target ginseng corresponding with function point to be measured in the second mapped file Number;Target component is inputted into automated test frame, test case is generated using automated test frame.
In one embodiment, current script includes the function name of multiple functions;Variance analysis module 602 is additionally operable to obtain The call relation of multiple functions in current script;According to the call relation between multiple functions, the function name of multiple functions is utilized Build the corresponding multiway tree of test object, the function relation figure using multiway tree as test object;According to pre-stored function name With the mapping relations of function point, function relation figure is converted into functional relationship figure;Functional relationship figure includes multiple function points.
In one embodiment, Test cases technology device further includes test environment update module 608, for receiving first Verification request, according to the first verification request display verification page;The verification page includes multiple verification groups, and verification group includes test pair As the file identification of corresponding first configuration file of actual motion environment, and the corresponding test environment of test object corresponding second The file identification of configuration file;First configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes must Need configuration item;The selected operation of one or more verification groups is obtained, utilizes selected corresponding first configuration file of verification group The file identification of file identification and the second configuration file generation the second verification request;Second verification request is sent to server, Make server according to the file identification of the file identification of the first configuration file and the second configuration file extract the first configuration file and Second configuration file, contrasts the configuration data in the first configuration file and the second configuration file line by line, obtains in the presence of poor Different configuration item, and utilize the corresponding configuration data generation more new command of the configuration item having differences;When receiving more new command When, the corresponding configuration data of corresponding configuration item in the second configuration file is carried out more using the configuration data that more new command carries Newly, make the second configuration file that there is identical required configuration item with the first configuration file.
Above-mentioned chart generating means can be implemented as a kind of form of computer program, and computer program can be in such as Fig. 7 Run in shown computer equipment.
In one embodiment, there is provided a kind of computer equipment, the computer equipment can be server or Mobile terminal.When the computer equipment is terminal, its cut-away view can be as shown in Figure 7.The computer equipment includes logical Cross processor, non-volatile memory medium, built-in storage, network interface, display screen and the input unit of system bus connection.Its In, the processor of computer equipment is used to provide calculating and control ability.The memory of the computer equipment includes non-volatile Storage medium and built-in storage.The non-volatile memory medium of the computer equipment is stored with operating system and computer program, The built-in storage of the computer equipment provides ring for the operating system in non-volatile memory medium and the operation of computer program Border.To realize a kind of method for generating test case when the computer program is executed by processor.The network of the computer equipment connects Mouth is used to communicate with exterior network interface.The display screen of computer equipment can be touch-screen etc., and input unit can be with It is the touch layer covered on display screen, can also be the button set on shell, trace ball, Trackpad, external keyboard, touch-control Plate or mouse etc..The computer equipment can be computer, mobile phone, tablet computer etc..Processor can be with when performing computer program Perform following steps:The corresponding current script of test object is obtained, current script is scanned, determines that test object is corresponding Multiple function points;The corresponding history script of test object is obtained, determines current script with respect to the code that history script has differences; The code having differences includes multiple functions;The first mapped file prestored is obtained, the first mapped file have recorded multiple The mapping relations of function name and function point, the function point of function association influence is determined according to mapping relations, will associate the work(influenced It can put and be used as function point to be measured;Obtain the second mapped file for prestoring, the second mapped file, which have recorded, multiple treats brake Point and corresponding target component, obtain target component corresponding with function point to be measured in the second mapped file;Target is joined Number input automated test frame, test case is generated using automated test frame.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics Shield, is all considered to be the scope of this specification record.
In one embodiment, following steps are also performed when processor performs computer program:It is actual to obtain test object Corresponding first configuration file of running environment, and corresponding second configuration file of the corresponding test environment of test object;First matches somebody with somebody Put file and the second configuration file includes multiple configuration items respectively;Configuration item includes required configuration item;To the first configuration file and Configuration data in second configuration file is contrasted line by line, obtains the configuration item that configuration data has differences;Obtain in the presence of poor The corresponding more new link of different configuration item, using more new link generation configuration change notice, configuration change notice is sent and is extremely surveyed The corresponding monitor terminal in test ring border, makes monitor terminal correspond to the more new command of configuration item by selecting the generation of more new link;When connecing When receiving the more new command of configuration item, using the configuration data in the first configuration file to corresponding configuration item in the second configuration file Corresponding configuration data is updated, and the second configuration file is had identical required configuration item with the first configuration file.
In one embodiment, following steps are also performed when processor performs computer program:The first verification request is received, According to the first verification request display verification page;The verification page includes multiple verification groups, and verification group includes the actual fortune of test object The file identification of corresponding first configuration file of row environment, and corresponding second configuration file of the corresponding test environment of test object File identification;First configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes required configuration item; Obtain the selected operation of one or more verification groups, using selected corresponding first configuration file of verification group file identification and File identification generation the second verification request of second configuration file;Second verification request is sent to server, makes server root The first configuration file and the second configuration text are extracted according to the file identification of the first configuration file and the file identification of the second configuration file Part, contrasts the configuration data in the first configuration file and the second configuration file line by line, obtains the configuration item having differences, And utilize the corresponding configuration data generation more new command of the configuration item having differences;When receiving more new command, renewal is utilized The configuration data that instruction carries is updated the corresponding configuration data of corresponding configuration item in the second configuration file, makes the second configuration File has identical required configuration item with the first configuration file.
In one embodiment, current script includes the function name of multiple functions;Processor is gone back when performing computer program Perform following steps:Obtain the call relation of multiple functions in current script;According to the call relation between multiple functions, utilize The corresponding multiway tree of function name structure test object of multiple functions, the function relation figure using multiway tree as test object;Root According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;Functional relationship figure bag Include multiple function points.
In one embodiment, the function point in functional relationship figure is systemic-function point;Processor performs computer program When also perform following steps:The corresponding historical test data of test object is obtained, historical test data includes multiple function points;Work( Can put includes systemic-function point and Elementary Function point;Functional relationship figure is reconstructed according to historical test data, makes reconstruct Functional relationship figure includes multiple systemic-function points and the Elementary Function point of corresponding connection;Determined according to the first mapped file multiple The Elementary Function point of influence is respectively associated in function;Obtained in functional relationship figure and be with what the Elementary Function point of association influence was connected System function point.
In one embodiment, there is provided a kind of computer-readable recording medium, is stored thereon with computer program, the journey Computer program following steps are realized when sequence is executed by processor:The corresponding current script of test object is obtained, to current script It is scanned, determines the corresponding multiple function points of test object;The corresponding history script of test object is obtained, determines current script The code being had differences with respect to history script;The code having differences includes multiple functions;Obtain the first mapping prestored File, the first mapped file have recorded multiple function names and the mapping relations of function point, determine that function associates according to mapping relations The function point of influence, will associate the function point influenced as function point to be measured;The second mapped file that acquisition prestores, second Mapped file have recorded multiple function points to be measured and corresponding target component, obtain and treat brake in the second mapped file The corresponding target component of point;Target component is inputted into automated test frame, test case is generated using automated test frame.
In one embodiment, following steps are also performed when computer program is executed by processor:It is real to obtain test object Corresponding first configuration file of border running environment, and corresponding second configuration file of the corresponding test environment of test object;First Configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes required configuration item;To the first configuration file Contrasted line by line with the configuration data in the second configuration file, obtain the configuration item that configuration data has differences;Obtain and exist The corresponding more new link of configuration item of difference, using more new link generation configuration change notice, configuration change notice is sent extremely The corresponding monitor terminal of test environment, makes monitor terminal correspond to the more new command of configuration item by selecting the generation of more new link;When When receiving the more new command of configuration item, using the configuration data in the first configuration file to corresponding configuration in the second configuration file The corresponding configuration data of item is updated, and the second configuration file is had identical required configuration item with the first configuration file.
In one embodiment, following steps are also performed when computer program is executed by processor:Receiving the first verification please Ask, according to the first verification request display verification page;The verification page includes multiple verification groups, and it is actual that verification group includes test object The file identification of corresponding first configuration file of running environment, and the corresponding second configuration text of the corresponding test environment of test object The file identification of part;First configuration file and the second configuration file include multiple configuration items respectively;Configuration item includes configuring ;The selected operation of one or more verification groups is obtained, utilizes the files-designated of selected corresponding first configuration file of verification group Know and the second verification of the file identification of the second configuration file generation is asked;Second verification request is sent to server, makes service Device is matched somebody with somebody according to the file identification of the first configuration file and file identification extraction the first configuration file and second of the second configuration file File is put, the configuration data in the first configuration file and the second configuration file is contrasted line by line, obtains matching somebody with somebody of having differences Item is put, and utilizes the corresponding configuration data generation more new command of the configuration item having differences;When receiving more new command, utilize The configuration data that more new command carries is updated the corresponding configuration data of corresponding configuration item in the second configuration file, makes second Configuration file has identical required configuration item with the first configuration file.
In one embodiment, current script includes the function name of multiple functions;When computer program is executed by processor Also perform following steps:Obtain the call relation of multiple functions in current script;According to the call relation between multiple functions, profit With the corresponding multiway tree of function name structure test object of multiple functions, the function relation figure using multiway tree as test object; According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;Functional relationship figure Including multiple function points.
In one embodiment, the function point in functional relationship figure is systemic-function point;Computer program is held by processor Following steps are also performed during row:The corresponding historical test data of test object is obtained, historical test data includes multiple function points; Function point includes systemic-function point and Elementary Function point;Functional relationship figure is reconstructed according to historical test data, makes reconstruct Functional relationship figure include multiple systemic-function points and the Elementary Function point of corresponding connection;Determined according to the first mapped file more The Elementary Function point of influence is respectively associated in a function;What the Elementary Function point that obtained in functional relationship figure influences with association was connected Systemic-function point.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, aforementioned computer program can be stored in a non-volatile memory medium In, the computer program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, foregoing storage medium can For magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics Shield, is all considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, its description is more specific and detailed, but can not Therefore it is interpreted as the limitation to application range.It should be pointed out that for those of ordinary skill in the art, do not taking off On the premise of present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention.Cause This, the protection domain of the application should be determined by the appended claims.

Claims (10)

1. a kind of method for generating test case, including:
The corresponding current script of test object is obtained, the current script is scanned, determines that the test object is corresponding Multiple function points;
The corresponding history script of test object is obtained, determines the generation that the current relatively described history script of script has differences Code;The code having differences includes multiple functions;
The first mapped file prestored is obtained, first mapped file have recorded the mapping of multiple function names and function point Relation, the function point that function association influences is determined according to the mapping relations, using the function point that the association influences as Function point to be measured;
Obtain the second mapped file for prestoring, second mapped file have recorded multiple function points to be measured and corresponding Target component, obtains target component corresponding with the function point to be measured in second mapped file;
The target component is inputted into automated test frame, test case is generated using automated test frame.
2. according to the method described in claim 1, it is characterized in that, in the step for obtaining the corresponding current script of test object Before rapid, further include:
Obtain corresponding first configuration file of the test object actual motion environment, and the corresponding test wrapper of the test object Corresponding second configuration file in border;First configuration file and the second configuration file include multiple configuration items respectively;It is described to match somebody with somebody Putting item includes required configuration item;
Configuration data in first configuration file and the second configuration file is contrasted line by line, configuration data is obtained and exists The configuration item of difference;
The corresponding more new link of configuration item being had differences described in acquisition, is notified using more new link generation configuration change, Configuration change notice is sent to the corresponding monitor terminal of test environment, monitor terminal is generated by the selected more new link The more new command of corresponding configuration item;
When receiving the more new command of configuration item, using the configuration data in the first configuration file to phase in the second configuration file Answer the corresponding configuration data of configuration item to be updated, there is second configuration file and the first configuration file identical required Configuration item.
3. according to the method described in claim 1, it is characterized in that, in the step for obtaining the corresponding current script of test object Before rapid, further include:
The first verification request is received, according to the described first verification request display verification page;The verification page includes multiple schools Group is tested, the verification group includes the file identification of corresponding first configuration file of test object actual motion environment, and test The file identification of corresponding second configuration file of the corresponding test environment of object;First configuration file and the second configuration file point Bao Kuo not multiple configuration items;The configuration item includes required configuration item;
The selected operation of one or more verification groups is obtained, utilizes the files-designated of selected corresponding first configuration file of verification group Know and the second verification of the file identification of the second configuration file generation is asked;
Described second verification request is sent to server, makes the server according to the file identification of the first configuration file and the The file identification of two configuration files extracts the first configuration file and the second configuration file, to the first configuration file and the second configuration text Configuration data in part is contrasted line by line, obtains the configuration item having differences, and corresponding using the configuration item having differences Configuration data generates more new command;
When receiving the more new command, using the configuration data that the more new command carries to corresponding in the second configuration file The corresponding configuration data of configuration item is updated, and second configuration file is matched somebody with somebody with identical with the first configuration file Put item.
4. according to the method described in claim 1, it is characterized in that, the current script includes the function name of multiple functions;Institute The step of stating the definite test object corresponding multiple function points, including:
Obtain the call relation of multiple functions in the current script;
According to the call relation between multiple functions, the corresponding multi-fork of the test object is built using the function name of multiple functions Tree, the function relation figure using the multiway tree as test object;
According to the mapping relations of pre-stored function name and function point, function relation figure is converted into functional relationship figure;The work( Energy graph of a relation includes multiple function points.
5. according to the method described in claim 4, it is characterized in that, the function point in the functional relationship figure is systemic-function Point;After described the step of determining the test object corresponding multiple function points, further include:Obtain the test object pair The historical test data answered, the historical test data include multiple function points;The function point includes systemic-function point and list Meta function point;
The functional relationship figure is reconstructed according to historical test data, makes the functional relationship figure of reconstruct include multiple system work( It can put and correspond to the Elementary Function point of connection;
It is described that the step of function point of influence is respectively associated in multiple functions is determined according to first mapped file, including:According to First mapped file determines that the Elementary Function point of influence is respectively associated in multiple functions;
The systemic-function point that the Elementary Function point that obtained in the functional relationship figure influences with association is connected.
6. a kind of Test cases technology device, including:
Variance analysis module, for obtaining the corresponding current script of test object, is scanned the current script, determines institute State the corresponding multiple function points of test object;The corresponding history script of test object is obtained, determines the current script with respect to institute State the code that history script has differences;The code having differences includes multiple functions;
Function point determining module, for obtaining the first mapped file prestored, first mapped file have recorded multiple The mapping relations of function name and function point, the function point of the function association influence are determined according to the mapping relations, by described in The function point influenced is associated as function point to be measured;
Test cases technology module, for obtaining the second mapped file prestored, second mapped file have recorded more A function point to be measured and corresponding target component, obtain corresponding with the function point to be measured in second mapped file Target component;The target component is inputted into automated test frame, test case is generated using automated test frame.
7. device according to claim 6, it is characterised in that the current script includes the function name of multiple functions;Institute State the call relation that variance analysis module is additionally operable to obtain multiple functions in the current script;According to the tune between multiple functions With relation, the corresponding multiway tree of the test object is built using the function name of multiple functions, using the multiway tree as test The function relation figure of object;According to the mapping relations of pre-stored function name and function point, function relation figure is converted into function Graph of a relation;The functional relationship figure includes multiple function points.
8. device according to claim 6, it is characterised in that described device further includes test environment update module, is used for The first verification request is received, according to the described first verification request display verification page;The verification page includes multiple verification groups, The verification group includes the file identification of corresponding first configuration file of test object actual motion environment, and test object phase Answer the file identification of corresponding second configuration file of test environment;First configuration file and the second configuration file include respectively Multiple configuration items;The configuration item includes required configuration item;The selected operation of one or more verification groups is obtained, using selected File identification generation the second verification request of the file identification and the second configuration file of corresponding first configuration file of verification group;Will The second verification request is sent to server, the server is configured according to the file identification of the first configuration file and second The file identification of file extracts the first configuration file and the second configuration file, in the first configuration file and the second configuration file Configuration data is contrasted line by line, obtains the configuration item having differences, and utilize the corresponding configuration number of configuration item having differences According to generation more new command;When receiving the more new command, the configuration data carried using the more new command is matched somebody with somebody to second Put the corresponding configuration data of corresponding configuration item in file to be updated, there is second configuration file and the first configuration file Identical required configuration item.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor The step of calculation machine program, the processor realizes claim 1-5 any one the methods when performing the computer program.
10. a kind of computer-readable recording medium, is stored thereon with computer program, when which is executed by processor The step of realizing claim 1-5 any one the methods.
CN201711165854.5A 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium Active CN107992409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711165854.5A CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711165854.5A CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107992409A true CN107992409A (en) 2018-05-04
CN107992409B CN107992409B (en) 2020-08-21

Family

ID=62031913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711165854.5A Active CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107992409B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804336A (en) * 2018-06-15 2018-11-13 深圳壹账通智能科技有限公司 Interactive system test method, device, computer equipment and storage medium
CN109376081A (en) * 2018-09-27 2019-02-22 深圳壹账通智能科技有限公司 The generation method and device of Test Strategy
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN109726104A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Test bag generation method, test terminal and the storage medium of mobile terminal
CN110147317A (en) * 2019-04-19 2019-08-20 平安普惠企业管理有限公司 Code test method and device, electronic equipment and storage medium
CN110162467A (en) * 2019-04-23 2019-08-23 平安科技(深圳)有限公司 Method for testing software, device, computer equipment and readable storage medium storing program for executing
CN110263305A (en) * 2019-05-22 2019-09-20 中国平安财产保险股份有限公司 Configuration file control methods, device, equipment and storage medium
CN110389896A (en) * 2019-06-18 2019-10-29 中国平安人寿保险股份有限公司 Code automated analysis and test method, device and computer readable storage medium
CN110443321A (en) * 2019-08-14 2019-11-12 北京百度网讯科技有限公司 Model structure method of adjustment and device
CN110908898A (en) * 2019-11-06 2020-03-24 贝壳技术有限公司 Method and system for generating test scheme
CN111078473A (en) * 2020-01-03 2020-04-28 恩亿科(北京)数据科技有限公司 Test item copying method and device
CN111078572A (en) * 2019-12-23 2020-04-28 北京同有飞骥科技股份有限公司 Automated interaction testing method and system
CN111459796A (en) * 2020-02-27 2020-07-28 西安广和通无线软件有限公司 Automatic testing method and device, computer equipment and storage medium
CN111752843A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Method, device, electronic equipment and readable storage medium for determining influence surface
CN111858379A (en) * 2020-07-30 2020-10-30 中国工商银行股份有限公司 Application testing method and device
CN111880795A (en) * 2020-07-29 2020-11-03 中国银联股份有限公司 Front-end interface generation method and device
CN111881051A (en) * 2020-08-03 2020-11-03 Oppo广东移动通信有限公司 Test case generation method and device, terminal and storage medium
CN112152841A (en) * 2020-09-03 2020-12-29 锐捷网络股份有限公司 Verification method, verification device, switch, equipment and storage medium
CN112181849A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112363929A (en) * 2020-11-10 2021-02-12 中国平安人寿保险股份有限公司 System online method and device, computer equipment and storage medium
CN112433941A (en) * 2020-11-23 2021-03-02 中国建设银行股份有限公司 Test analysis method, device, equipment and storage medium
CN112948271A (en) * 2021-04-09 2021-06-11 腾讯科技(深圳)有限公司 Code testing method, device, equipment and storage medium
CN113612654A (en) * 2021-07-12 2021-11-05 东风汽车集团股份有限公司 Vehicle-mounted gateway function testing method based on database
CN113641578A (en) * 2021-08-10 2021-11-12 广域铭岛数字科技有限公司 Accurate test method, system, equipment and medium based on service level
CN113656324A (en) * 2021-08-31 2021-11-16 中国平安人寿保险股份有限公司 Full link testing method, device, equipment and medium for disease entry and decision
CN113656318A (en) * 2021-08-23 2021-11-16 上海哔哩哔哩科技有限公司 Software version testing method and device and computer equipment
CN113672518A (en) * 2021-09-07 2021-11-19 京东科技控股股份有限公司 Test case construction method and related equipment
CN114138581A (en) * 2021-12-02 2022-03-04 深圳市高速达科技有限公司 Mainboard test method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198010A (en) * 2012-01-06 2013-07-10 腾讯科技(深圳)有限公司 Software testing method, device and system
US20130198320A1 (en) * 2012-01-31 2013-08-01 Bank Of America Corporation System And Method For Processing Web Service Test Cases
CN103870384A (en) * 2012-12-11 2014-06-18 航天信息股份有限公司 Test case presumption method and system
CN104539487A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Method for testing system based on cloud platform and evaluating reliability
CN106528399A (en) * 2015-09-15 2017-03-22 腾讯科技(深圳)有限公司 Test case determination method and apparatus
CN107193739A (en) * 2017-05-23 2017-09-22 张泽祎 A kind of black box regression testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198010A (en) * 2012-01-06 2013-07-10 腾讯科技(深圳)有限公司 Software testing method, device and system
US20130198320A1 (en) * 2012-01-31 2013-08-01 Bank Of America Corporation System And Method For Processing Web Service Test Cases
CN103870384A (en) * 2012-12-11 2014-06-18 航天信息股份有限公司 Test case presumption method and system
CN104539487A (en) * 2015-01-20 2015-04-22 成都益联科创科技有限公司 Method for testing system based on cloud platform and evaluating reliability
CN106528399A (en) * 2015-09-15 2017-03-22 腾讯科技(深圳)有限公司 Test case determination method and apparatus
CN107193739A (en) * 2017-05-23 2017-09-22 张泽祎 A kind of black box regression testing method

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726104A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Test bag generation method, test terminal and the storage medium of mobile terminal
CN109726104B (en) * 2018-05-15 2024-02-27 深圳市兴海物联科技有限公司 Test packet generation method of mobile terminal, test terminal and storage medium
CN108804336A (en) * 2018-06-15 2018-11-13 深圳壹账通智能科技有限公司 Interactive system test method, device, computer equipment and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN109376081A (en) * 2018-09-27 2019-02-22 深圳壹账通智能科技有限公司 The generation method and device of Test Strategy
CN110147317A (en) * 2019-04-19 2019-08-20 平安普惠企业管理有限公司 Code test method and device, electronic equipment and storage medium
CN110162467A (en) * 2019-04-23 2019-08-23 平安科技(深圳)有限公司 Method for testing software, device, computer equipment and readable storage medium storing program for executing
CN110162467B (en) * 2019-04-23 2023-12-19 平安科技(深圳)有限公司 Software testing method, device, computer equipment and readable storage medium
CN110263305A (en) * 2019-05-22 2019-09-20 中国平安财产保险股份有限公司 Configuration file control methods, device, equipment and storage medium
CN110263305B (en) * 2019-05-22 2023-09-19 中国平安财产保险股份有限公司 Configuration file comparison method, device, equipment and storage medium
CN110389896A (en) * 2019-06-18 2019-10-29 中国平安人寿保险股份有限公司 Code automated analysis and test method, device and computer readable storage medium
CN110443321A (en) * 2019-08-14 2019-11-12 北京百度网讯科技有限公司 Model structure method of adjustment and device
CN110908898A (en) * 2019-11-06 2020-03-24 贝壳技术有限公司 Method and system for generating test scheme
CN111078572A (en) * 2019-12-23 2020-04-28 北京同有飞骥科技股份有限公司 Automated interaction testing method and system
CN111078572B (en) * 2019-12-23 2023-08-11 北京同有飞骥科技股份有限公司 Automatic interaction testing method and system
CN111078473A (en) * 2020-01-03 2020-04-28 恩亿科(北京)数据科技有限公司 Test item copying method and device
CN111459796A (en) * 2020-02-27 2020-07-28 西安广和通无线软件有限公司 Automatic testing method and device, computer equipment and storage medium
CN111459796B (en) * 2020-02-27 2024-03-15 西安广和通无线软件有限公司 Automated testing method, apparatus, computer device and storage medium
CN111752843B (en) * 2020-06-29 2024-02-13 百度在线网络技术(北京)有限公司 Method, apparatus, electronic device and readable storage medium for determining influence surface
CN111752843A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Method, device, electronic equipment and readable storage medium for determining influence surface
CN111880795B (en) * 2020-07-29 2024-03-12 中国银联股份有限公司 Front-end interface generation method and device
CN111880795A (en) * 2020-07-29 2020-11-03 中国银联股份有限公司 Front-end interface generation method and device
CN111858379B (en) * 2020-07-30 2024-03-29 中国工商银行股份有限公司 Application testing method and device
CN111858379A (en) * 2020-07-30 2020-10-30 中国工商银行股份有限公司 Application testing method and device
CN111881051A (en) * 2020-08-03 2020-11-03 Oppo广东移动通信有限公司 Test case generation method and device, terminal and storage medium
CN112152841A (en) * 2020-09-03 2020-12-29 锐捷网络股份有限公司 Verification method, verification device, switch, equipment and storage medium
CN112152841B (en) * 2020-09-03 2023-06-20 锐捷网络股份有限公司 Verification method, verification device, switch, equipment and storage medium
CN112181849B (en) * 2020-10-23 2023-07-25 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112181849A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112363929A (en) * 2020-11-10 2021-02-12 中国平安人寿保险股份有限公司 System online method and device, computer equipment and storage medium
CN112363929B (en) * 2020-11-10 2023-07-25 中国平安人寿保险股份有限公司 System online method and device, computer equipment and storage medium
CN112433941A (en) * 2020-11-23 2021-03-02 中国建设银行股份有限公司 Test analysis method, device, equipment and storage medium
CN112948271A (en) * 2021-04-09 2021-06-11 腾讯科技(深圳)有限公司 Code testing method, device, equipment and storage medium
CN113612654A (en) * 2021-07-12 2021-11-05 东风汽车集团股份有限公司 Vehicle-mounted gateway function testing method based on database
CN113641578A (en) * 2021-08-10 2021-11-12 广域铭岛数字科技有限公司 Accurate test method, system, equipment and medium based on service level
CN113656318A (en) * 2021-08-23 2021-11-16 上海哔哩哔哩科技有限公司 Software version testing method and device and computer equipment
CN113656324B (en) * 2021-08-31 2023-08-22 中国平安人寿保险股份有限公司 Full-link test method, device, equipment and medium for disease input and decision
CN113656324A (en) * 2021-08-31 2021-11-16 中国平安人寿保险股份有限公司 Full link testing method, device, equipment and medium for disease entry and decision
CN113672518A (en) * 2021-09-07 2021-11-19 京东科技控股股份有限公司 Test case construction method and related equipment
CN114138581B (en) * 2021-12-02 2022-08-05 深圳市高速达科技有限公司 Mainboard test method and system
CN114138581A (en) * 2021-12-02 2022-03-04 深圳市高速达科技有限公司 Mainboard test method and system

Also Published As

Publication number Publication date
CN107992409B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN107992409A (en) Method for generating test case, device, computer equipment and storage medium
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN107861870A (en) Interface testing and test data generating method, device, terminal and storage medium
CN108628748B (en) Automatic test management method and automatic test management system
EP2095236B1 (en) Method, system and computer program for testing software applications based on multiple data sources
CN108446221A (en) System detection method, device, computer equipment and storage medium
Qin et al. Testmig: Migrating gui test cases from ios to android
CN114981775B (en) Cloud-based API metadata management method and system for integrated API management
US11074162B2 (en) System and a method for automated script generation for application testing
Kirbas et al. The relationship between evolutionary coupling and defects in large industrial software
Chen et al. Extracting and studying the Logging-Code-Issue-Introducing changes in Java-based large-scale open source software systems
CN108920359A (en) Test method, device, storage medium and the electronic device of application program
US20180357143A1 (en) Testing computing devices
US9703683B2 (en) Software testing coverage
CN108563572A (en) A kind of regression testing method, device and server
US20160124795A1 (en) Evaluation method and apparatus
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
Ahmad et al. Data visualisation in continuous integration and delivery: Information needs, challenges, and recommendations
CN111400171B (en) Interface testing method, system and device and readable storage medium
CN111159028B (en) Webpage testing method and device
CN112015715A (en) Industrial Internet data management service testing method and system
CN116016270A (en) Switch test management method and device, electronic equipment and storage medium
Ribeiro et al. Usability problems discovery based on the automatic detection of usability smells
CN113886221A (en) Test script generation method and device, storage medium and electronic equipment
CN110532186A (en) Method, apparatus, electronic equipment and the storage medium tested using identifying code

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