[go: up one dir, main page]

CN102053912A - Device and method for automatically testing software based on UML (unified modeling language) graphs - Google Patents

Device and method for automatically testing software based on UML (unified modeling language) graphs Download PDF

Info

Publication number
CN102053912A
CN102053912A CN 201110001824 CN201110001824A CN102053912A CN 102053912 A CN102053912 A CN 102053912A CN 201110001824 CN201110001824 CN 201110001824 CN 201110001824 A CN201110001824 A CN 201110001824A CN 102053912 A CN102053912 A CN 102053912A
Authority
CN
China
Prior art keywords
test
uml diagram
diagram shape
path
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201110001824
Other languages
Chinese (zh)
Inventor
夏知渊
王俊良
高鸿升
金莺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN 201110001824 priority Critical patent/CN102053912A/en
Publication of CN102053912A publication Critical patent/CN102053912A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a device and method for automatically testing software based on UML (unified modeling language) graphs. The device comprises a UML graph reading device, a UML graph analyzing device, a testing route analyzing device, a testing route choosing device, a testing script generating device, a data management device and an automatic testing tool which are connected in sequence. The device realizes automatic testing of the software by analyzing UML graphs and generating a test script according to the content of the UML graphs. Through the device and method provided by the invention, the problems that the frequently repeated transcribing process and testing script modifying process required by the traditional process of automatic testing result in low testing efficiency, low accuracy and low coverage rate are solved.

Description

A kind of device and method that software is carried out automatic test based on uml diagram shape
Technical field
The present invention relates to the computer automated testing technical field, relate to particularly that a kind of (Unified Modeling Language, UML) figure carries out the device and method of automatic test to software based on unified modeling language.
Background technology
Software test is subjected to paying attention to widely as the gordian technique that guarantees software quality and enterprise's production safety just day by day.The simple manual test that relies on has been difficult to satisfy the requirement that the client improves constantly software quality, and industry adopts the automatic test means to improve testing efficiency, shortens the test duration and saves human cost in continuous research.But, write the automatic test script work that is absolutely necessary in automatic test, along with the continuous upgrading of software, the tester just need ceaselessly remove to record again and revise script, make the automatic test course inefficiency, and directly cause the increase of test duration.And, the quality that compile script is write also directly has influence on the test effect of software, test script write bad will cause software test not comprehensively, can not effectively excavate out the defective that exists in the software, and then influence the quality of software, even influence the stability of enterprise's production run.
Therefore, study and realize the automatic generation of test script, the quality of raising software test efficient and raising software, thus people always such as realization system stability are in the problem of constantly studying.
Summary of the invention
(1) technical matters that will solve
The present invention for solve at present need when the automatic test frequent record and revise test script again so that cause that testing efficiency is low, accuracy and the low problem of coverage rate, a kind of device and method that software is carried out automatic test based on uml diagram shape is provided.
(2) technical scheme
For achieving the above object, the invention provides a kind of device that software is carried out automatic test based on uml diagram shape, this device comprises uml diagram shape reading device 1, uml diagram conformal analysis device 2, test path analytical equipment 3, test path selecting arrangement 4, test script generating apparatus 5, data administrator 6 and the automated test tool 7 that connects successively, this device is by analyzing uml diagram shape, content according to uml diagram shape generates test script, realizes the automatic test to software.
In the such scheme, described uml diagram shape reading device 1 is used for reading from the uml diagram shape file nodal information of uml diagram shape, and the nodal information of the uml diagram shape of reading is sent to uml diagram conformal analysis device 2.
In the such scheme, described uml diagram shape reading device 1 reads the nodal information of uml diagram shape from the uml diagram shape file, is to read nodename, node type, node weights and the node remark information that relates in the uml diagram shape from the uml diagram shape file.
In the such scheme, described uml diagram conformal analysis device 2 is used for the nodal information that reads according to uml diagram shape reading device, analyzes each internodal relation in the figure, and this node and relationships between nodes information are sent to test path analytical equipment 3.
In the such scheme, described test path analytical equipment 3 is used for the ergodic algorithm by the degree of depth or breadth First, and the information that uml diagram conformal analysis device 2 is resolved changes into each test path, and storage.
In the such scheme, described test path selecting arrangement 4 is used to calculate the priority level of the various test paths that test path analytical equipment 3 produces, and filters out relevant test path according to the priority of user's predefined, sends to test script generating apparatus 5.
In the such scheme, the key word of the different nodes of each test path that described test script generating apparatus 5 is used for filtering out by test path analytical equipment 3 is sought tested object automatically in the JSP source file of tested system, after noting the related object type, generate automatic test script automatically.
In the such scheme, described test script generating apparatus 5 is when generating automatic test script, and the script that generates failure is registered and revised as the problem of tested system code static check.
In the such scheme, described test script generating apparatus 5 comprises test path reading unit 10, action keywording unit 11, object retrieval and matching unit 12 and the test script productive unit 14 that connects successively, and the structure test code information 13 that is connected in test script productive unit 14.
In the such scheme, test path reading unit 10 is used for reading information needed from the test path that the test path selecting arrangement is selected; Action key element 11 is used for extracting the action key word from each node in path; Object retrieval and matching unit 12 are used for seeking code according to key word at tested system source code and obtain relevant control type, and extract corresponding test code from component testing code information 13; Component testing code information 13 is used to accumulate the test code of storing each class A of geometric unitA; Test script productive unit 14 is used for the node sequence according to test path, and the test code tissue on the coupling is formed test script, and output simultaneously generates the situation report of failure.
In the such scheme, described data administrator 6 is used for storing the data that each node of each test path is tested, and automated test tool 7 is tested by reading these data.
In the such scheme, described automated test tool 7 is used for the data of reading of data management devices 6 storages, the automatic test script that operation generates automatically, and draw corresponding test result.
For achieving the above object, the present invention also provides a kind of and based on uml diagram shape software has been carried out the method for automatic test, is applied to describedly based on uml diagram shape software be carried out the device of automatic test, and this method comprises:
Uml diagram shape reading device reads the nodal information of uml diagram shape from the uml diagram shape file, and the nodal information of the uml diagram shape of reading is sent to uml diagram conformal analysis device;
Uml diagram conformal analysis device analyzes each internodal relation in the figure, and sends to the test path analytical equipment according to the nodal information that uml diagram shape reading device reads;
The test path analytical equipment obtains all largest connected paths of figure according to node and the relationships between nodes information analysis that uml diagram conformal analysis device provides, and should change into test path inventory and storage in largest connected path;
The test path screening strategy that the test path selecting arrangement is selected according to the user filters out the path that needs test, and sends to the test script generating apparatus from the test path of test path analytical equipment storage;
The test script generating apparatus mates and exports the counterpart member test code information of self storing, and produces test script; And
Automated test tool moves this test script, finishes test job.
In the such scheme, described uml diagram shape reading device reads the nodal information of uml diagram shape from the uml diagram shape file, is to read nodename, node type, node weights and the node remark information that relates in the uml diagram shape from the uml diagram shape file.
In the such scheme, each internodal relation further constitutes the set on " limit " determined by any two nodes in the uml diagram shape in the described uml diagram shape.
In the such scheme, described test script generating apparatus coupling and export the counterpart member test code information of self storage, produce test script, comprise: the test script generating apparatus is according to the selected test path of test path selecting arrangement, by each node key word is found corresponding control in the source code of tested system after, the counterpart member test code information of coupling and the storage of output test script generating apparatus produces test script.
In the such scheme, described automated test tool moves before this test script, also comprises: the data that the tester uses when setting the script operation by data administrator.
(3) beneficial effect
From technique scheme as can be seen, the present invention has following beneficial effect:
1, this device and method that software is carried out automatic test based on uml diagram shape provided by the invention, realize that by uml diagram shape being analyzed the robotization of test script generates according to the content of uml diagram shape, solved when automatic test, need at present frequent record and revise test script again so that cause that testing efficiency is low, accuracy and the low problem of coverage rate.
2, this device and method that software is carried out automatic test based on uml diagram shape provided by the invention, realize that by the content of uml diagram shape being analyzed according to uml diagram shape the robotization of test script generates, thereby the accuracy and the coverage rate of automatic test script have been improved, effectively excavate out the defective that exists in the software, improve the testing efficiency and the quality of software, ensure the production stability and security of enterprise.
3, this device and method that software is carried out automatic test based on uml diagram shape provided by the invention, by to uml diagram conformal analysis automatic manufacturing test script, improve versatility, reusability, ease for use and the maintainability of automatic test, reduced the cost of human resources of test job.
4, this device and method that software is carried out automatic test based on uml diagram shape provided by the invention, test and demand analysis seamless connection: the tester directly according to demand analysis result produce test path, reduce omission and the wrong probability of happening of people when reading comprehension.
5, this device and method that software is carried out automatic test based on uml diagram shape provided by the invention, quick joining with automatic test: need not the tester and record or write automatic test script again, but directly produce test script by the script compile device.
Description of drawings
Fig. 1 is a schematic representation of apparatus of software being carried out automatic test based on uml diagram shape provided by the invention;
Fig. 2 is the synoptic diagram of test script process units provided by the invention;
Fig. 3 is the method flow diagram that software is carried out automatic test based on uml diagram shape provided by the invention;
Fig. 4 is the synoptic diagram according to the uml diagram shape of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
The software industry is relatively praised highly in demand analysis stage and is carried out demand analysis work by the standard of UML at present, and the characteristic of UML is mainly to express with the mode of figure.Therefore UML can be good at reflecting the demand and the function of software.Utilize the method for uml diagram shape production test script may further comprise the steps: 1, to resolve uml diagram shape: the various information that promptly reads uml diagram shape automatically; 2, test analysis: promptly under the prerequisite that reads uml diagram information, carry out traversal path and the extraction of test focus according to the information of uml diagram; 3, the selection of preferred path:,, need to go out according to some information calculations the priority in each path in order to improve the test effect because the complete trails coverage test is possible hardly; 4, the production of automatic test script: can be connected with automated test tool, realize the automated production of test script.
The device and method that software is carried out automatic test based on uml diagram shape provided by the invention, by uml diagram shape is analyzed, content according to uml diagram shape realizes that the robotization of test script generates, thereby the accuracy and the coverage rate of testing efficiency and automatic test script have been improved, effectively excavate out the defective that exists in the software, improve the testing efficiency and the quality of software, guarantee the stability of enterprise's production run.Be specifically described below in conjunction with accompanying drawing.
Fig. 1 provided by the inventionly carries out the schematic representation of apparatus of automatic test based on uml diagram shape to software, and this device comprises: uml diagram shape reading device 1, uml diagram conformal analysis device 2, test path analytical equipment 3, test path selecting arrangement 4, test script generating apparatus 5, data administrator 6 and automated test tool 7.Wherein:
Uml diagram shape reading device 1 is used for reading uml diagram shape information from relevant uml diagram shape file, and the uml diagram shape information that reads sent to uml diagram conformal analysis device 2, mainly the nodename that relates in the figure, node type, node weights, node remarks etc. are read in this device and are also stored.Uml diagram conformal analysis device 2 is used for resolving every information of the uml diagram shape information that uml diagram shape reading device 1 reads, and is mainly node relationships in twos, and sends to test path analytical equipment 3.Test path analytical equipment 3 is used for the ergodic algorithm by the degree of depth or breadth First, and the information that uml diagram conformal analysis device 2 is resolved changes into each test path, and sends to test path selecting arrangement 4.Test path selecting arrangement 4 is used to calculate the priority level of the various test paths that test path analytical equipment 3 produces, and filters out relevant test path according to the priority of user's predefined, and sends to test script generating apparatus 5.The key word of the different nodes of each test path that test script generating apparatus 5 is used for filtering out by test path analytical equipment 3 is sought tested object automatically in the JSP source file of tested system, after noting the related object type, automatically generate automatic test script, generate the script of failure simultaneously, the problem that can be used as tested system code static check is registered and is revised.Data administrator 6 is used for storing the data that each node of each test path is tested, and automated test tool 7 is tested by reading these data.Automated test tool 7 is used for the data of reading of data management devices 6 storages, the automatic test script that operation generates automatically, and draw corresponding test result.
Below each device is specifically described:
1, uml diagram shape reading device: the figure that describes software requirement in the uml diagram is generally digraph, and as shown in Figure 4, Fig. 4 is the synoptic diagram according to the uml diagram shape of the embodiment of the invention.Digraph is: digraph G be an ordered pair (V, E), V is a limited node set, E is by two ordered pair set that different elements are formed among the V, the element among the E is called the limit.This uml diagram shape reading device 1 is exactly to utilize the text interpretation method of drawing tools to each nodal information in the figure, is used for finishing reading and storing of vertex set V, comprises nodename, node type, node weights, node remarks etc.
As exemplary plot 4, the text interpretation method of the drawing tools that this figure uses is: the state node starts with " object State ", the operability node starts with " object Decision " with " object ActivityState " beginning, the property judged node; The weight of node starts with " pw "; The remarks of node start with " documentation ".By retrieving these related keywords each nodal information in the digraph is all read and notes after reading in graphic file with text mode, produce following result:
Figure BDA0000042887060000071
2, uml diagram conformal analysis device: among the digraph G recited above, if i and j belong to node set V, promptly i is two different summits among the G with j, if there be [i, j] to belong to E, then [i, j] is a limit among the G, and we claim summit i to be contiguous to the j summit so.And uml diagram conformal analysis device is exactly a text interpretation method of utilizing the drawing tools opposite side, analyzes digraph one by one and finds its all limit, finishes the storage of set E.In this way graphical information has been converted to its corresponding adjacency list form, made follow-up Computer Processing function can understand graphical information.
As exemplary plot 4, the text interpretation method of the drawing tools that this figure uses is: indicate following information for " limit " by key word " object TransView ", key word " client " indicates start node then, key word " supplier " indicates end node, and the arrangement that these two nodes constitute both had been " limit ".By the retrieval of above-mentioned key word, with concerning in twos of changing into of digraph or to be called the information on limit as follows.
Figure BDA0000042887060000072
Figure BDA0000042887060000081
3, test path analytical equipment: in the traversal path algorithm of digraph, depth-first traversal is its classical mode.It is by from start node, seek apart from the node (adjacent node) that is 1, may find a plurality of nodal distances identical (the branch fork in the road promptly having occurred) this moment, the wherein arbitrary node of mark is as beginning that continue to seek next node, is designated as finishing of certain paths when not having adjacent node up to finding.Rollback up progressively finds nearest branch fork in the road then, selects still unbeaten path to continue to seek next node, finishes up to the path.Move in circles all to travel through to all paths then and finish.Through this algorithm process, the active path of the digraph of various complexities all can be found.
As exemplary plot 4, the nodal information that utilizes uml diagram shape reading device to collect learns that start node is " beginning-user's login ", the side information that utilizes uml diagram conformal analysis device to collect learns that adjacent with it unique node is " demonstration-login page ", serves as that beginning learns that in side information adjacent with it node is " input-user name " with " demonstration-login page " again.When the rest may be inferred to node " judgement-user's name ", two different adjacent nodes " demonstration-user does not exist " and " judgement-password " have occurred, be start node continuation down searching with " judgements-password " this moment.Having occurred two different nodes " demonstration-password mistake " and " demonstration-custom menu " again, is beginning with " demonstration-custom menu ", continues down to seek to end node to occur branchs fork in the road, then paths end again.Up counter then pushing away, seek a nearest branch fork in the road " judgement-password ", this moment, covered in wherein a branch branch road " demonstrations-custom menu ", then can walk another branch branch road " demonstrations-password mistake ", to an end node appearance minute fork in the road more.Up counter more at last pushing away searches out an initial branch fork in the road " judgement-user's name ", because " judgement-password " fork has been finished analysis, then walks remaining " demonstration-user does not exist " path, to finishing not occur dividing the fork in the road again.Through above-mentioned analysis, whole digraph analysis finishes, and producible test path has three altogether.
Figure BDA0000042887060000091
4, test path selecting arrangement: what the test path selecting arrangement produced is digraph complete trails analysis result, and generally figure pahtfinder hard is many more more, need carry out the analysis of the preferential test in a path.Selecting arrangement provides several strategies to calculate:
The one, happy path analysis, the operation steps of finishing a whole incident in system is fewer, be generally system's function comparatively commonly used, calculate the experience step number in each path by the preferential test selector of this feature, select then through the test path of number of nodes in certain numerical range and test (this numerical value can be provided with according to user's needs, and perhaps device calculates the number of steps mean value in all paths voluntarily as this numerical value) in device.As exemplary plot 4, suppose that case step that the user sets is smaller or equal to seven steps in device, then the test path selecting arrangement step that calculates three cases is respectively seven, eight, seven, first and the 3rd case that selecting arrangement can be selected to meet the number of steps requirement tested, because step was for seven steps.
The 2nd, judge cladding process, produce in the system development and occur situations such as coding is unusual on the node of each individual path easily, at this situation, strengthening herein, test also is very important.The test path selecting arrangement can be analyzed and add up each path and comprise the node which plays judgement effect or fork effect, because in graphical information, judge its special expression symbol arranged, and the fork node means that this node connects two different next nodes at least, more than 2 all formerly in the information that reads of device institute manifest.This moment, fixture can be selected the test path that includes predicate node or branch node, and therefrom find and comprise different decision or the maximum paths of branch node, in full dose judgement or branch node, get rid of these nodes that have been capped then, in comprising the path of predicate node, seek the path of cover-most again with remaining the node that is not capped, till all predicate nodes all are capped.As exemplary plot 4, selecting arrangement is learnt from nodal information, co-exists in two branch nodes, and the device sweep test is found two cases during the path, and second case comprised this two nodes simultaneously, selects case two to test so install back.
The 3rd, the weight back-and-forth method can indicate indivedual important step in feasibility analysis procedure, if the importance to node is expressed with weighted value in figure, then can calculate the weight total of each path through node.The test path selecting arrangement utilizes this characteristic, the weight in each path is calculated (the important node weights of needs expression in the device, other nodes do not indicate and then are defaulted as 0), need to select the path of test then by weighted value relatively, and relatively the threshold values of usefulness can be provided with or be calculated voluntarily by device the weighted mean of all cases as required by the user in device.As exemplary plot 4, suppose that the demand analysis personnel think that the password determination step is important test point, then the weight definition that password is judged is 1, and select threshold values to be calculated voluntarily by device is 0.7, selector switch can select second and third case to test, because the weight of these two cases is greater than 0.7.
5, test script generating apparatus: each node of test path is actual to be each action of carrying out in system, and has all comprised the key messages such as title of these actions in the nodal information, and in the path each internodal order actual be exactly the sequence of operation of moving; The automatic test code of difference in functionality control on the page encapsulated be stored in the compiler.After satisfying these two key elements, just reached the basic demand of automatic generation test script.Promptly tell compiler, need on the page, seek the action object of key word correspondence according to the order of action, compiler is after finding object on the JSP of the tested system source code, find corresponding automatic test code in the code library of in compiler, storing according to object type, export automatic test script at last.
As shown in Figure 2, test script generating apparatus 5 comprises test path reading unit 10, action keywording unit 11, object retrieval and matching unit 12, makes up test code information 13 and test script productive unit 14.Wherein: test path reading unit 10 is used for reading information needed from the test path that the test path selecting arrangement is selected; Action key element 11 is used for extracting the action key word from each node in path; The object retrieval is used for seeking code according to key word at tested system source code with matching unit 12 and obtains relevant control type, and extracts corresponding test code from component testing code information 13; Component testing code information 13 is used to accumulate the test code of each class A of geometric unitA of storage; Test script productive unit 14 is used for the node sequence according to test path, and the test code tissue on the coupling is formed test script, and output simultaneously generates the situation report of failure.
As exemplary plot 4, " user name " is object keywords, and then the test script generating apparatus is sought in source code, finds the back to find that its object type is Editbox, then compiler is sought the test code of Editbox in the code library, outputs in the automatic test script then.
The test script form that generates is as follows:
1, seeking key word on the page is that " user name ", type are Editbox;
2, judge whether find:
2.1, find, then call the automatic test function of Editbox correspondence, and import the automatic test data into;
2.2, do not find, and number of attempt is then attempted the first step again less than N;
2.3, do not find, and number of attempt is more than or equal to N, then abnormality processing;
3, N action repeats 1 and 2;
4, abnormality processing: record failure cause, case are designated as carries out failure.
6, data administrator: the main storage and management of being responsible for data of this device comprises the uml diagram graphic data, other each device is handled and produced intermediate data and the last test script that generates etc.This partial devices can generate following form test data design table according to the case of selecting, and carries out design data for the tester, imports the test data storage after design is finished.Test script promptly can read relevant test data and has tested like this.As exemplary plot 4, according to test path 1, data administrator can generate following design data table, and the user imports to after maintenance is finished and finishes design data in the data administrator.
Operational motion Data set 1 Data set 2 ...... Data set N
Beginning-user's login
Demonstration-login page
Input-user name Zhang San Li Si ...... Horse six
Input-password ?123 ?321 ...... 654
Click-submission
Judgement-user's name
Demonstration-user does not exist
Show-re-enter
Finish-login again
7, automated test tool 7: instrument reads test data corresponding in automatic test script and the data administrator, moves automatically one by one, and notes the dependence test result.
Fig. 2 is the synoptic diagram of test script process units 5 provided by the invention, comprises test path reading unit 10, action keywording unit 11, object retrieval and matching unit 12, makes up test code information 13 and test script productive unit 14.Specifically describe as follows:
Test path reading unit 10: be used for reading information from the test path that the test path selecting arrangement is selected.
Action key element 11: be used for extracting the action key word from each node in path.
Object retrieval and matching unit 12: be used for seeking code at tested system source code and obtain relevant control type, and from component testing code information 13, extract corresponding test code according to key word; If in source code, do not find the information with keyword matching, then note the relevant abnormalities situation.
Component testing code information 13: the test code that is used to accumulate each class A of geometric unitA of storage;
Test script productive unit 14: be used for the node sequence according to test path, the test code tissue on the coupling is formed test script, output simultaneously generates the associated pathway or the node situation report of failure.
Fig. 3 provided by the inventionly carries out the method flow diagram of automatic test based on uml diagram shape to software, and these method concrete steps are as follows:
Step 100:UML figure reading device reads graphical information to this device from relevant uml diagram shape file, finish the first step for follow-up work and prepare, mainly the nodename that relates in the figure, node type, node weights, node remarks etc. are read in this device and are also stored.
Step 101:UML pattern analysis device analyzes each internodal relation in the figure according to the nodal information that uml diagram shape reading device reads, and promptly finishes the set analysis and the storage on " limit ", finishes for second step for follow-up work and prepares.
Step 102: the test path analytical equipment obtains all largest connected paths of figure according to " node " and " limit " information analysis that uml diagram shape reading device and uml diagram conformal analysis device provide, and the largest connected path that figure is all changes into the test path inventory, then this test path inventory stored.
Finish for the analytical work in the testable complete path of tested system like this, and be stored in the data administrator 6.
Step 103: the test path screening strategy that the test path selecting arrangement is selected according to the user filters out the path that needs test from the test path of test path analytical equipment storage.
Step 104: the test script generating apparatus is according to the selected test path of test path selecting arrangement, by each node key word is found corresponding control in the source code of tested system after, the counterpart member test code information of coupling and the storage of output test script generating apparatus produces test script.
Step 105: the data that the tester uses when setting the script operation by data administrator.
Step 106: automated test tool moves this test script, finishes test job.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. device that software is carried out automatic test based on uml diagram shape, it is characterized in that, this device comprises uml diagram shape reading device 1, uml diagram conformal analysis device 2, test path analytical equipment 3, test path selecting arrangement 4, test script generating apparatus 5, data administrator 6 and the automated test tool 7 that connects successively, this device is by analyzing uml diagram shape, content according to uml diagram shape generates test script, realizes the automatic test to software.
2. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described uml diagram shape reading device 1 is used for reading from the uml diagram shape file nodal information of uml diagram shape, and the nodal information of the uml diagram shape of reading is sent to uml diagram conformal analysis device 2.
3. the device that software is carried out automatic test based on uml diagram shape according to claim 2, it is characterized in that, described uml diagram shape reading device 1 reads the nodal information of uml diagram shape from the uml diagram shape file, be to read nodename, node type, node weights and the node remark information that relates in the uml diagram shape from the uml diagram shape file.
4. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described uml diagram conformal analysis device 2 is used for the nodal information that reads according to uml diagram shape reading device, analyze each internodal relation in the figure, and this node and relationships between nodes information are sent to test path analytical equipment 3.
5. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described test path analytical equipment 3 is used for the ergodic algorithm by the degree of depth or breadth First, and the information that uml diagram conformal analysis device 2 is resolved changes into each test path, and storage.
6. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described test path selecting arrangement 4 is used to calculate the priority level of the various test paths that test path analytical equipment 3 produces, and filter out relevant test path according to the priority of user's predefined, send to test script generating apparatus 5.
7. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, the key word of the different nodes of each test path that described test script generating apparatus 5 is used for filtering out by test path analytical equipment 3 is sought tested object automatically in the JSP source file of tested system, after noting the related object type, generate automatic test script automatically.
8. the device that software is carried out automatic test based on uml diagram shape according to claim 7, it is characterized in that, described test script generating apparatus 5 is when generating automatic test script, and the script that generates failure is registered and revised as the problem of tested system code static check.
9. the device that software is carried out automatic test based on uml diagram shape according to claim 7, it is characterized in that, described test script generating apparatus 5 comprises test path reading unit 10, action keywording unit 11, object retrieval and matching unit 12 and the test script productive unit 14 that connects successively, and the structure test code information 13 that is connected in test script productive unit 14.
10. according to claim 9ly software is carried out the device of automatic test, it is characterized in that based on uml diagram shape:
Test path reading unit 10 is used for reading information needed from the test path that the test path selecting arrangement is selected;
Action key element 11 is used for extracting the action key word from each node in path;
Object retrieval and matching unit 12 are used for seeking code according to key word at tested system source code and obtain relevant control type, and extract corresponding test code from component testing code information 13;
Component testing code information 13 is used to accumulate the test code of storing each class A of geometric unitA;
Test script productive unit 14 is used for the node sequence according to test path, and the test code tissue on the coupling is formed test script, and output simultaneously generates the situation report of failure.
11. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described data administrator 6 is used for storing the data that each node of each test path is tested, and automated test tool 7 is tested by reading these data.
12. the device that software is carried out automatic test based on uml diagram shape according to claim 1, it is characterized in that, described automated test tool 7 is used for the data of reading of data management devices 6 storages, the automatic test script that operation generates automatically, and draw corresponding test result.
13. one kind is carried out the method for automatic test based on uml diagram shape to software, is applied to that claim 1 is described carries out the device of automatic test based on uml diagram shape to software, it is characterized in that this method comprises:
Uml diagram shape reading device reads the nodal information of uml diagram shape from the uml diagram shape file, and the nodal information of the uml diagram shape of reading is sent to uml diagram conformal analysis device;
Uml diagram conformal analysis device analyzes each internodal relation in the figure, and sends to the test path analytical equipment according to the nodal information that uml diagram shape reading device reads;
The test path analytical equipment obtains all largest connected paths of figure according to node and the relationships between nodes information analysis that uml diagram conformal analysis device provides, and should change into test path inventory and storage in largest connected path;
The test path screening strategy that the test path selecting arrangement is selected according to the user filters out the path that needs test, and sends to the test script generating apparatus from the test path of test path analytical equipment storage;
The test script generating apparatus mates and exports the counterpart member test code information of self storing, and produces test script; And
Automated test tool moves this test script, finishes test job.
14. method of software being carried out automatic test based on uml diagram shape according to claim 13, it is characterized in that, described uml diagram shape reading device reads the nodal information of uml diagram shape from the uml diagram shape file, be to read nodename, node type, node weights and the node remark information that relates in the uml diagram shape from the uml diagram shape file.
15. according to claim 13ly software is carried out the method for automatic test, it is characterized in that each internodal relation further constitutes the set on " limit " determined by any two nodes in the uml diagram shape in the described uml diagram shape based on uml diagram shape.
16. according to claim 13ly software is carried out the method for automatic test, it is characterized in that described test script generating apparatus coupling and export the counterpart member test code information of self storage produces test script, comprising based on uml diagram shape:
The test script generating apparatus is according to the selected test path of test path selecting arrangement, by each node key word is found corresponding control in the source code of tested system after, the counterpart member test code information of coupling and the storage of output test script generating apparatus produces test script.
17. according to claim 13ly software is carried out the method for automatic test, it is characterized in that described automated test tool moves before this test script, also comprises based on uml diagram shape:
The data that the tester uses when setting the script operation by data administrator.
CN 201110001824 2011-01-06 2011-01-06 Device and method for automatically testing software based on UML (unified modeling language) graphs Pending CN102053912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110001824 CN102053912A (en) 2011-01-06 2011-01-06 Device and method for automatically testing software based on UML (unified modeling language) graphs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110001824 CN102053912A (en) 2011-01-06 2011-01-06 Device and method for automatically testing software based on UML (unified modeling language) graphs

Publications (1)

Publication Number Publication Date
CN102053912A true CN102053912A (en) 2011-05-11

Family

ID=43958257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110001824 Pending CN102053912A (en) 2011-01-06 2011-01-06 Device and method for automatically testing software based on UML (unified modeling language) graphs

Country Status (1)

Country Link
CN (1) CN102053912A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722441A (en) * 2012-06-11 2012-10-10 清华大学 Formalized detection method of intelligent UML (Unified Modeling Language) model and device
CN103853649A (en) * 2012-11-28 2014-06-11 百度在线网络技术(北京)有限公司 Application program testing method and system
CN106155898A (en) * 2015-04-16 2016-11-23 北京搜狗科技发展有限公司 The method for obtaining path of a kind of flow chart and device
CN106445818A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Debug method and device for automated scripts based on model driving
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN104090844B (en) * 2014-07-18 2017-06-06 百度在线网络技术(北京)有限公司 Webpage automated testing method and device
CN106959919A (en) * 2016-01-08 2017-07-18 广州市动景计算机科技有限公司 Method for testing software and device based on test path figure
CN107885868A (en) * 2011-07-18 2018-04-06 谷歌有限责任公司 Generate method, system and the medium of the graph-based of channel contribution
CN108255734A (en) * 2018-02-01 2018-07-06 中国工商银行股份有限公司 Test coverage analytical method and system
CN106294154B (en) * 2016-08-11 2018-08-24 上海泛微网络科技股份有限公司 Flow chart automated testing method based on FLEX exploitations
CN109634842A (en) * 2018-10-29 2019-04-16 中惠医疗科技(上海)有限公司 Test method and system based on QT application program
CN110851366A (en) * 2019-11-18 2020-02-28 中国银行股份有限公司 Method and device for realizing regression test
CN112486808A (en) * 2020-11-20 2021-03-12 中国人寿保险股份有限公司 System test method, device, electronic equipment and storage medium
CN112667500A (en) * 2020-12-23 2021-04-16 北京焦点新干线信息技术有限公司 Regression testing method and device
CN115934519A (en) * 2022-11-28 2023-04-07 卫宁健康科技集团股份有限公司 Test method, equipment and medium based on unified modeling language UML flowchart
CN116910386A (en) * 2023-09-14 2023-10-20 深圳市智慧城市科技发展集团有限公司 Address completion method, terminal device and computer-readable storage medium
CN119336639A (en) * 2024-10-12 2025-01-21 北京中超伟业信息安全技术股份有限公司 An efficient software testing method and system based on UML activity diagram

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253839A1 (en) * 2005-03-30 2006-11-09 Alberto Avritzer Generating performance tests from UML specifications using markov chains
CN101046767A (en) * 2006-03-31 2007-10-03 Sap股份公司 Method and system for automated testing of a graphic-based programming tool
CN101464797A (en) * 2008-12-09 2009-06-24 北京星网锐捷网络技术有限公司 Method and system for automatically generating test use case based on unified modeling language activity graph

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253839A1 (en) * 2005-03-30 2006-11-09 Alberto Avritzer Generating performance tests from UML specifications using markov chains
CN101046767A (en) * 2006-03-31 2007-10-03 Sap股份公司 Method and system for automated testing of a graphic-based programming tool
CN101464797A (en) * 2008-12-09 2009-06-24 北京星网锐捷网络技术有限公司 Method and system for automatically generating test use case based on unified modeling language activity graph

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885868B (en) * 2011-07-18 2021-04-27 谷歌有限责任公司 Method, system, and medium for generating graphical representations of channel contributions
CN107885868A (en) * 2011-07-18 2018-04-06 谷歌有限责任公司 Generate method, system and the medium of the graph-based of channel contribution
CN102722441A (en) * 2012-06-11 2012-10-10 清华大学 Formalized detection method of intelligent UML (Unified Modeling Language) model and device
CN102722441B (en) * 2012-06-11 2016-03-23 清华大学 The formalization detection method of the uml model of intelligence and device
CN103853649A (en) * 2012-11-28 2014-06-11 百度在线网络技术(北京)有限公司 Application program testing method and system
CN103853649B (en) * 2012-11-28 2018-09-04 百度在线网络技术(北京)有限公司 A kind of test method and system of application program
CN104090844B (en) * 2014-07-18 2017-06-06 百度在线网络技术(北京)有限公司 Webpage automated testing method and device
CN106155898B (en) * 2015-04-16 2020-09-01 北京搜狗科技发展有限公司 Method and device for acquiring path of flow chart
CN106155898A (en) * 2015-04-16 2016-11-23 北京搜狗科技发展有限公司 The method for obtaining path of a kind of flow chart and device
CN106959919A (en) * 2016-01-08 2017-07-18 广州市动景计算机科技有限公司 Method for testing software and device based on test path figure
CN106959919B (en) * 2016-01-08 2022-01-28 阿里巴巴(中国)有限公司 Software testing method and device based on testing path diagram
CN106294154B (en) * 2016-08-11 2018-08-24 上海泛微网络科技股份有限公司 Flow chart automated testing method based on FLEX exploitations
CN106445818A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Debug method and device for automated scripts based on model driving
CN106445818B (en) * 2016-09-13 2019-05-10 郑州云海信息技术有限公司 A model-driven automatic script debugging method and device
CN106656650B (en) * 2016-10-08 2020-01-14 腾讯科技(深圳)有限公司 Method and system for generating service test environment, and method, device and system for service test
CN106656650A (en) * 2016-10-08 2017-05-10 腾讯科技(深圳)有限公司 Business test environment generation method and system and business test method, device and system
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN106649100B (en) * 2016-11-16 2020-08-25 福建天晴数码有限公司 Automatic testing method and system
CN108255734A (en) * 2018-02-01 2018-07-06 中国工商银行股份有限公司 Test coverage analytical method and system
CN109634842A (en) * 2018-10-29 2019-04-16 中惠医疗科技(上海)有限公司 Test method and system based on QT application program
CN110851366A (en) * 2019-11-18 2020-02-28 中国银行股份有限公司 Method and device for realizing regression test
CN112486808A (en) * 2020-11-20 2021-03-12 中国人寿保险股份有限公司 System test method, device, electronic equipment and storage medium
CN112486808B (en) * 2020-11-20 2024-04-16 中国人寿保险股份有限公司 System testing method and device, electronic equipment and storage medium
CN112667500A (en) * 2020-12-23 2021-04-16 北京焦点新干线信息技术有限公司 Regression testing method and device
CN115934519A (en) * 2022-11-28 2023-04-07 卫宁健康科技集团股份有限公司 Test method, equipment and medium based on unified modeling language UML flowchart
CN115934519B (en) * 2022-11-28 2025-11-18 卫宁健康科技集团股份有限公司 Testing methods, equipment, and media based on Unified Modeling Language (UML) flowcharts
CN116910386A (en) * 2023-09-14 2023-10-20 深圳市智慧城市科技发展集团有限公司 Address completion method, terminal device and computer-readable storage medium
CN116910386B (en) * 2023-09-14 2024-02-02 深圳市智慧城市科技发展集团有限公司 Address completion method, terminal device and computer-readable storage medium
CN119336639A (en) * 2024-10-12 2025-01-21 北京中超伟业信息安全技术股份有限公司 An efficient software testing method and system based on UML activity diagram

Similar Documents

Publication Publication Date Title
CN102053912A (en) Device and method for automatically testing software based on UML (unified modeling language) graphs
Ma et al. Graph-based and scenario-driven microservice analysis, retrieval, and testing
KR101732764B1 (en) Intelligent code differencing using code clone detection
CN103678110B (en) The method and apparatus of amendment relevant information is provided
US9098630B2 (en) Data selection
CN106533754A (en) Fault diagnosis method and expert system for college teaching servers
CN107111625A (en) Realize the method and system of the efficient classification and exploration of data
CN106126416B (en) A kind of service combination path derivation method based on process layout
CN104750496A (en) Automatic checking method for change influence degree of model
CN111859047A (en) A kind of fault solving method and device
US12118338B1 (en) Facilitating updates to data pipelines using modularly-generated platform- agnostic data pipeline portions systems and methods
CN108920609A (en) Electric power experiment data mining method based on multi-dimensional analysis
CN109522193A (en) A kind of processing method of operation/maintenance data, system and device
CN113609008B (en) Test result analysis method and device and electronic equipment
CN112668733A (en) Method and device for dispatching defect and fault of communication management system based on unsupervised learning
CN119829469B (en) Firmware testing method, electronic device, storage medium and program product
CN118796154B (en) Development method based on artificial intelligence education service platform
Aghdasifam et al. A New Metaheuristic‐Based Hierarchical Clustering Algorithm for Software Modularization
Rajbahadur et al. Pitfalls analyzer: quality control for model-driven data science pipelines
CN117519656A (en) Software development system based on intelligent manufacturing
CN117634992A (en) Multi-source heterogeneous data insight analysis system and method
JP2013077124A (en) Software test case generation device
US20220247620A1 (en) Identification of Clusters of Elements Causing Network Performance Degradation or Outage
JP2013003669A (en) Method of extracting partial structure of high frequency from data having graph structure, device of the same and program
CN106021401A (en) Extensible entity analysis algorithm based on reverse indices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110511