CN107423209A - Method for testing software and device - Google Patents

Method for testing software and device Download PDF

Info

Publication number
CN107423209A
CN107423209A CN201710137128.6A CN201710137128A CN107423209A CN 107423209 A CN107423209 A CN 107423209A CN 201710137128 A CN201710137128 A CN 201710137128A CN 107423209 A CN107423209 A CN 107423209A
Authority
CN
China
Prior art keywords
recorded
test case
examining
examining system
recording
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
CN201710137128.6A
Other languages
Chinese (zh)
Other versions
CN107423209B (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201710137128.6A priority Critical patent/CN107423209B/en
Publication of CN107423209A publication Critical patent/CN107423209A/en
Application granted granted Critical
Publication of CN107423209B publication Critical patent/CN107423209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method for testing software and device.Wherein, this method includes:The library of object of examining system test case is recorded by presetting testing tool;Unrecorded object in examining system test case is determined according to result is recorded;The replacement object in related system is recorded, wherein, related system is the default system with examining system with preset relation, and it is the object in related system to substitute object, substitutes object and is used to substitute unrecorded object in examining system test case;According to the library of object of the result change examining system test case for the replacement object recorded in related system.The present invention solves the regression test that the software function caused by recording object failure automates in correlation technique and can not realized or using the inaccurate technical problem of test result caused by other processing methods.

Description

Method for testing software and device
Technical field
The present invention relates to software test field, in particular to a kind of method for testing software and device.
Background technology
It can guarantee the quality and issue on schedule in order to the demand and guarantee product of quick response business, increasing enterprise is using every Day compiling and the pattern tested daily are carried out the work.In order to each compiled version product quality of fast verification, confirm in time Whether function produces rollback, and a lot of producers are attempted using the regression testing method automated such as:Software, instrument etc. are to functional Checking.The regression test of automation is generally based on user interface (UI), is the playback to Object Operations.And what is automated returns Test difficult point is returned to be that object is difficult to identify, self-defined or attractive in appearanceization has been done at some complicated software systems such as CAD system, interface, Often there is object when recording and not recorded in the regression test of automation, and due to object nonrecognition, causes test case or scene It can not realize, even result in the regression test that enterprise is automated and be changed into impossible.In correlation technique, when using software, work Meeting automatic recording object generation library of object when tool etc. records test scene, if object does not create in recording process, then can It can be handled using one of following three kinds of modes:
1) regression test of automation is not performed to the correlation function of this object, verified by manual testing.
2) this object is got around using functional test corresponding to shortcut command execution.
3) this object is got around using functional test corresponding to the order entrance execution of other objects.
If handled using the scheme in above-mentioned correlation technique, can not accurate software system function, go out Existing function is omitted to be surveyed, it is necessary to carry out artificial mend.Even when the object for multiple test cases occur is not recorded, abandon automating Regression test.
It can not be realized for the regression test that the software function caused by recording object failure automates in correlation technique Or using the inaccurate technical problem of test result caused by other processing methods, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of method for testing software and device, at least to solve in correlation technique due to recording The regression test that software function caused by object failure automates can not be realized or tied using being tested caused by other processing methods The inaccurate technical problem of fruit.
One side according to embodiments of the present invention, there is provided a kind of method for testing software, this method include:By default Testing tool records the library of object of examining system test case;Determine not record in examining system test case according to result is recorded Object;The replacement object in related system is recorded, wherein, related system has preset relation to be default with examining system System, it is the object in related system to substitute object, and it is unrecorded right in examining system test case for substituting to substitute object As;According to the library of object of the result change examining system test case for the replacement object recorded in related system.
Further, related system includes one or more related systems, and the replacement object recorded in related system includes: A related system, and replacing in the related system to selecting are selected in one or more related systems according to preset order Recorded for object;The object of examining system test case is changed in the result of the replacement object in recording related system After storehouse, method also includes:Judge to whether there is in examining system according to the library of object of the examining system test case after change Unrecorded object;If it is judged that being no, then next phase relation is selected in multiple related systems according to preset order System, and the replacement object in next related system to selecting is recorded, until the object used in examining system is equal Recording finishes.
Further, should before a related system is selected in one or more related systems according to preset order Method also includes:One or more related systems are determined in predetermined system storehouse according to preset relation;According to preset order one A related system is called in individual or multiple related systems.
Further, determine that unrecorded object includes in examining system test case according to recording result:To system to be measured The library of object for test case of uniting performs generalization processing, obtains the common objict repository of examining system;Based on the general of examining system Library of object and default test case, default implementation procedure record test script;Specification is performed to test script according to preset rules Processing is with unrecorded object in the determination examining system test case in the common objict repository of examining system.
Further, determined according to recording result in examining system test case after unrecorded object, this method Also include:The recording object configuration attribute of the default testing tool of modification, and by amended default testing tool to system to be measured Object in system test case is recorded again;Judged according to the result after recording again in examining system test case not Whether the object of recording records success;Successful object is not recorded if it is judged that being still suffered from after recording again, then in correlation Found in system and do not record the replacement object of successful object yet after recording again and recorded.
Another aspect according to embodiments of the present invention, a kind of software testing device is additionally provided, the device includes:First record Unit processed, for recording the library of object of examining system test case by presetting testing tool;First determining unit, for basis Record result and determine unrecorded object in examining system test case;Second recording elements, for recording in related system Object is substituted, wherein, related system is the default system with examining system with preset relation, and replacement object is related system In object, substitute object be used for substitute unrecorded object in examining system test case;Changing unit, for according to recording The library of object of the result change examining system test case of replacement object in related system.
Further, related system includes one or more related systems, and the second recording elements include:Selecting module, use In selecting a related system in one or more related systems according to preset order, and in the related system to selecting Object is substituted to be recorded;Device also includes:First judging unit, in the replacement object in recording related system As a result change after the library of object of examining system test case, judged according to the library of object of the examining system test case after change It whether there is unrecorded object in examining system;Selecting unit, for if it is judged that result is no, then according to preset order Next related system is selected in multiple related systems, and the replacement object in next related system to selecting is carried out Record, until the object used in examining system is recorded and finished.
Further, the device also includes:Second determining unit, for related in one or more according to preset order Before selecting a related system in system, one or more related systems are determined in predetermined system storehouse according to preset relation; Call unit, for calling a related system in one or more related systems according to preset order.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and storage medium includes the journey of storage Sequence, wherein, equipment performs method for testing software provided by the invention where controlling storage medium when program is run.
Another aspect according to embodiments of the present invention, a kind of processor being additionally provided, processor is used for operation program, its In, program performs method for testing software provided by the invention when running.
In embodiments of the present invention, the library of object of examining system test case is recorded by presetting testing tool;According to record Result processed determines unrecorded object in examining system test case;The replacement object in related system is recorded, wherein, phase relation It is the object in related system to unite as the default system with examining system with preset relation, replacement object, substitutes object and uses In substituting unrecorded object in examining system test case;Result change according to the replacement object in related system is recorded is treated The library of object of examining system test case, solve what the software function caused by recording object failure in correlation technique automated Regression test can not be realized or using the inaccurate technical problem of test result caused by other processing methods, and then realize more The technique effect of Software function test is performed exactly.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of optional method for testing software according to embodiments of the present invention;
Fig. 2 is the flow chart of the optional method for testing software of another kind according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of optional software testing device according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
This application provides a kind of embodiment of method for testing software.
Fig. 1 is a kind of flow chart of optional method for testing software according to embodiments of the present invention, as shown in figure 1, the party Method comprises the following steps:
Step S101, the library of object of examining system test case is recorded by presetting testing tool.Alternatively, test is preset Instrument can be the test software or instrument for recording the recording object in test scene.Alternatively, default testing tool can To be the software and instrument of regression test for being automated, wherein, the method for testing software that the embodiment provides is used for Software systems to be measured are performed with the regression test of automation.Examining system is recorded in default checkout area by default testing tool Object under scape, obtain the library of object of examining system test case.
Step S102, unrecorded object in examining system test case is determined according to result is recorded.It is to be measured having recorded After the library of object of system testing use-case, it may be caused due to processing such as the self-defined and beautiful interfaces to examining system to some Object can not identify so that some objects not being recorded in examining system test case also be present, according to the result of recording Unrecorded object in examining system test case is determined, it is alternatively possible to true according to the library of object of examining system test case The fixed object not being recorded.
Alternatively, determine that unrecorded object can include in examining system test case according to recording result:To be measured The library of object of system testing use-case performs generalization processing, obtains the common objict repository of examining system;It is logical based on examining system Test script is recorded with library of object and default test case, default implementation procedure;Rule are performed to test script according to preset rules Model processing is with unrecorded object in the determination examining system test case in the common objict repository of examining system.
Step S103, the replacement object in related system is recorded, wherein, related system has to be default with examining system The system of preset relation, it is the object in related system to substitute object, substitutes object and is used to substitute in examining system test case Unrecorded object.
If there is unrecorded object, then the related object conduct of these unrecorded objects is determined in related system Object is substituted, is recorded by default testing tool or other testing tools in related system and substitutes object, is substituted according to recording The data recording of object substitutes the data recording of unrecorded object.
Alternatively, related system can be one or more related systems, can be according to preset order in one or more A related system is selected in related system, and the replacement object in the related system to selecting is recorded.Alternatively, exist , can also be according to preset relation pre- before selecting a related system in one or more related systems according to preset order If one or more related systems are determined in system library;A phase is called in one or more related systems according to preset order Relation is united.After the result of the replacement object in recording related system changes the library of object of examining system test case, It can also be judged to whether there is in examining system test case according to the library of object of the examining system test case after change and do not recorded The object of system, if it is judged that being no, then next related system is selected in multiple related systems according to preset order, and Replacement object in next related system for selecting is recorded, until the object used in examining system has been recorded Finish.
Step S104, the object of examining system test case is changed according to the result for the replacement object recorded in related system Storehouse.
After the replacement object in recording related system, changed according to the result for the replacement object recorded in related system The library of object of examining system test case, using the replacement object of recording as unrecorded object in examining system test case, The library of object being added in examining system test case.
Alternatively, determining in examining system test case after unrecorded object, to repair according to recording result Change the recording object configuration attribute of default testing tool, and by amended default testing tool to examining system test case In object recorded again;Unrecorded object in examining system test case is judged according to the result after recording again Whether recording is successful;Successful object is not recorded if it is judged that being still suffered from after recording again, then is found in related system Again the replacement object of successful object is not recorded yet and is recorded after recording.
Alternatively, can be to the recording result of replacement object before in the library of object for adding examining system test case Correspondingly handled, for example, the object properties for substituting object are copied in the library of object of examining system test case, and it is right The name for substituting object is changed, and is replaced by examining system test case that replacement object is corresponding does not record object with this Name.
The regression test difficult point of automation is that object is difficult to identify, but for software object Datong District of Object-Oriented Systems And small difference, if the nonrecognition in some software systems, object recording can be carried out in other similar software systems, tasted Try Object identifying.The object properties recorded in the software systems that be able to will be identified are copied in the software systems that can not be identified, then Debug and run in this system.The embodiment provide method for testing software by the regression test software Object identifying of automation into Work(method gets in the similar software of transformation from a specific software and obtained, and improves the success rate of identification.
The method for testing software provided with reference to a concrete application scene the embodiment is described in detail, Fig. 2 It is the flow chart of the optional method for testing software of another kind according to embodiments of the present invention, this method is used to perform returning for automation Return test, as shown in Fig. 2 this method includes:
Step 1:Record library of object.Examining system is recorded in test scene by the regression test software or instrument of automation Object, obtain the library of object of examining system test case.
Step 2:Library of object generalization is handled.Generalization processing is carried out to the library of object of examining system test case so that Object in library of object is the universal standard, for example, the name of object, attribute etc..
Step 3:Record script and do series of processes.Tested according to recordings such as test case, user's flows of examining system Script, and series of processes is performed to test script:Including test script is performed standardization, logically, function etc..
Step 4:Unidentified object borrows generation to handle.The object of unidentified (not recording) is confirmed, if there is not recording The object of system, then the recording of similar object is carried out in similar product, generate the library of object of similar products, wherein, similar production The recording of similar object is included in the library of object of product.Similar products are the products similar to examining system (product), alternatively, can Recorded with being found in corresponding development environment with object as unrecorded object class in examining system test case, class Like object be with unrecorded object class in examining system test case as object, unrecorded object can be it is multiple, point Similar object corresponding to object each Cha Zhao not be recorded to be recorded.Alternatively, if there is unrecorded object, similar Product in carry out similar object recording before, modification can be first attempted and does not record the attribute of object to be recorded, if still It can not so record, then the recording of similar object is carried out in similar product.After similar object has been recorded, by the class of recording The attribute for substituting object corresponding with not recording object copies the object of examining system test case in library of object like product In storehouse, and the name for substituting object is changed.
Step 5:Success is no.Judge not record whether object is all borrowed by substituting object in examining system test case In generation, handles and records and finish, if it is judged that being no, then return to step 4, that is, can not be solved completely in a similar products Certainly problem, can continue to attempt to record the replacement object in other similar products, until examining system test case in it is all not The object of recording by means of generation processing recording all by finishing.If it is judged that successfully by examining system test case it is all not Object is recorded by being finished by means of generation processing recording, then performs step 6.
Step 6:Perform the regression test of automation automation.Object in examining system test case all record into After work(, the regression test of automation is performed according to the result of recording.
Alternatively, the selection of above-mentioned similar products selects to be recorded in corresponding developing instrument first, for The software of Windows systems, recording object preferentially is carried out using Visual studio, secondly entered using the Office groupwares Row object is recorded, furthermore uses similar system software systems.Similar object can then use third party's object recognition software to identify The attribute characteristic of current test object, find similar object identification.
The method for testing software that the embodiment provides greatly solves the problems, such as Object identifying, adds Object identifying rate, Increase the accuracy of test, avoid using the method that gets around, improve testing efficiency, avoid increasing and artificial mend bringing of surveying Expense and the delay of time, carry out automatic test for enterprise and provide path.
The method for testing software that the embodiment provides is in CAXA 2D CAXAs, the automation of CAXA 3D entity designs It has been applied and has verified in regression test, partial objects can not identifies in the recording of script, result in corresponding function point Automatic test can not be carried out.After the technology, if it find that the object that can not be identified, then use in corresponding development environment Middle searching similar object is recorded, and object properties are copied in product, after unification object oriented, solve Object identifying Problem, Test coverage face, testing efficiency are greatly provided, solving general enterprises can not return what CAX systems were automated Return the technical problem of test.
It should be noted that accompanying drawing flow chart though it is shown that logical order, but in some cases, can be with Shown or described step is performed different from order herein.
Present invention also provides a kind of embodiment of software testing device.
Fig. 3 is a kind of schematic diagram of optional software testing device according to embodiments of the present invention, as shown in figure 3, the dress Put including the first recording elements 10, the first determining unit 20, the second recording elements 30 and changing unit 40.
First recording elements are used for the library of object that examining system test case is recorded by presetting testing tool.First determines Unit is used to determine unrecorded object in examining system test case according to recording result.Second recording elements are used to record phase Replacement object in relation system, wherein, related system is the default system with examining system with preset relation, substitutes object For the object in related system, substitute object and be used to substitute unrecorded object in examining system test case.Changing unit is used In the library of object that examining system test case is changed according to the result for the replacement object recorded in related system.
Alternatively, related system includes one or more related systems, and the second recording elements include:Selecting module, it is used for A related system, and replacing in the related system to selecting are selected in one or more related systems according to preset order Recorded for object;Device also includes:First judging unit, for the knot in the replacement object in recording related system After the library of object of fruit change examining system test case, judge to treat according to the library of object of the examining system test case after change It whether there is unrecorded object in examining system;Selecting unit, for if it is judged that result is no, then existing according to preset order Next related system is selected in multiple related systems, and the replacement object in next related system to selecting is recorded System, until the object used in examining system is recorded and finished.
Alternatively, the device also includes:Second determining unit, for according to preset order in one or more phase relations Before selecting a related system in system, one or more related systems are determined in predetermined system storehouse according to preset relation;Adjust With unit, for calling a related system in one or more related systems according to preset order.
Alternatively, the first determining unit includes:Execution module, it is logical for being performed to the library of object of examining system test case Handled with change, obtain the common objict repository of examining system;Module is recorded, for the common objict repository based on examining system and is preset Test case, default implementation procedure record test script;Determining module, for performing specification to test script according to preset rules Processing is with unrecorded object in the determination examining system test case in the common objict repository of examining system.
Alternatively, the device also includes:Unit is changed, for changing the recording object configuration attribute of default testing tool, And the object in examining system test case is recorded again by amended default testing tool;Second judges list Member, for judging whether unrecorded object records success in examining system test case according to the result after recording again; 3rd recording elements, for not recording successful object if it is judged that recording to still suffer from afterwards again, then in related system Find and do not record the replacement object of successful object yet after recording again and recorded.
Above-mentioned device can include processor and memory, and said units can be stored in storage as program unit In device, corresponding function is realized by the said procedure unit of computing device storage in memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of embodiment of storage medium.The storage medium includes the program of storage, wherein, in journey Equipment performs method for testing software provided in an embodiment of the present invention where controlling storage medium during sort run.
Present invention also provides a kind of embodiment of processor.Processor is used for operation program, wherein, program is held when running Row method for testing software provided in an embodiment of the present invention.
The order of above-mentioned the embodiment of the present application does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.In several embodiments provided herein, it should be appreciated that Arrive, disclosed technology contents, can realize by another way.
Wherein, device embodiment described above is only schematical, such as the division of the unit, can be one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the application whole or Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes Medium.
Described above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (10)

  1. A kind of 1. method for testing software, it is characterised in that including:
    The library of object of examining system test case is recorded by presetting testing tool;
    Unrecorded object in the examining system test case is determined according to result is recorded;
    The replacement object in related system is recorded, wherein, the related system has default for the default and examining system The system of relation, the object that substitutes is the object in the related system, and the replacement object is used to substitute the system to be measured Unrecorded object in test case of uniting;
    The library of object of the examining system test case is changed according to the result for the replacement object recorded in the related system.
  2. 2. according to the method for claim 1, it is characterised in that the related system includes one or more related systems, The replacement object recorded in related system includes:
    A related system, and the phase relation to selecting are selected in one or more of related systems according to preset order Replacement object in system is recorded;
    The library of object of the examining system test case is changed in the result of the replacement object in the recording related system Afterwards, methods described also includes:
    Judge whether deposited in the examining system test case according to the library of object of the examining system test case after change In unrecorded object;
    If it is judged that being no, then next phase relation is selected in the multiple related system according to the preset order System, and the replacement object in next related system to selecting is recorded, until examining system test is used Object used in example, which is recorded, to be finished.
  3. 3. according to the method for claim 2, it is characterised in that according to preset order in one or more of phase relations Before selecting a related system in system, methods described also includes:
    One or more of related systems are determined in predetermined system storehouse according to the preset relation;
    A related system is called in one or more of related systems according to the preset order.
  4. 4. according to the method for claim 1, it is characterised in that determine the examining system test case according to result is recorded In unrecorded object include:
    Generalization processing is performed to the library of object of the examining system test case, obtains the general object of the examining system Storehouse;
    Common objict repository and default test case based on the examining system, default implementation procedure record test script;
    Specification handles are performed to the test script to be determined in the common objict repository of the examining system according to preset rules Unrecorded object in the examining system test case.
  5. 5. according to the method for claim 1, it is characterised in that determining that the examining system test is used according to recording result In example after unrecorded object, methods described also includes:
    The recording object configuration attribute of the default testing tool is changed, and by the amended default testing tool to institute The object stated in examining system test case is recorded again;
    Judge whether unrecorded object records success in the examining system test case according to the result after recording again;
    Successful object is not recorded if it is judged that being still suffered from after recording again, then finds in the related system and record again The replacement object of successful object is not recorded yet and is recorded after system.
  6. A kind of 6. software testing device, it is characterised in that including:
    First recording elements, for recording the library of object of examining system test case by presetting testing tool;
    First determining unit, for determining unrecorded object in the examining system test case according to recording result;
    Second recording elements, for recording the replacement object in related system, wherein, the related system for it is default with it is described The system that examining system has preset relation, the object that substitutes is the object in the related system, and the replacement object is used The unrecorded object in the replacement examining system test case;
    Changing unit, used for changing the examining system test according to the result for the replacement object recorded in the related system The library of object of example.
  7. 7. device according to claim 6, it is characterised in that the related system includes one or more related systems,
    Second recording elements include:Selecting module, for according to preset order in one or more of related systems A related system is selected, and the replacement object in the related system to selecting is recorded;
    Described device also includes:First judging unit, for the result in the replacement object in the recording related system Change after the library of object of the examining system test case, according to the library of object of the examining system test case after change Judge to whether there is unrecorded object in the examining system;Selecting unit, for if it is judged that result is no, then according to The preset order selects next related system, and next correlation to selecting in the multiple related system Replacement object in system is recorded, until the object used in the examining system is recorded and finished.
  8. 8. device according to claim 7, it is characterised in that described device also includes:
    Second determining unit, for selecting a related system in one or more of related systems according to preset order Before, one or more of related systems are determined in predetermined system storehouse according to the preset relation;
    Call unit, for calling a related system in one or more of related systems according to the preset order.
  9. A kind of 9. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where method for testing software in equipment perform claim requirement 1 to 5 described in any one.
  10. A kind of 10. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the method for testing software described in any one in 1 to 5.
CN201710137128.6A 2017-03-08 2017-03-08 Software testing method and device Active CN107423209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710137128.6A CN107423209B (en) 2017-03-08 2017-03-08 Software testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710137128.6A CN107423209B (en) 2017-03-08 2017-03-08 Software testing method and device

Publications (2)

Publication Number Publication Date
CN107423209A true CN107423209A (en) 2017-12-01
CN107423209B CN107423209B (en) 2020-06-19

Family

ID=60423920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710137128.6A Active CN107423209B (en) 2017-03-08 2017-03-08 Software testing method and device

Country Status (1)

Country Link
CN (1) CN107423209B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388509A (en) * 2018-02-07 2018-08-10 平安科技(深圳)有限公司 A kind of method for testing software, computer readable storage medium and terminal device
CN115576857A (en) * 2022-12-08 2023-01-06 大方智造(天津)科技有限公司 Automatic testing method based on CAM testing engine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236775A1 (en) * 2002-06-20 2003-12-25 International Business Machines Corporation Topological best match naming convention apparatus and method for use in testing graphical user interfaces
CN105912460A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Software test method and system based on QTP
CN106021102A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Automated test file generation method and apparatus
CN106294185A (en) * 2016-08-30 2017-01-04 广州慧睿思通信息科技有限公司 Automated test frames based on five layers of framework and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236775A1 (en) * 2002-06-20 2003-12-25 International Business Machines Corporation Topological best match naming convention apparatus and method for use in testing graphical user interfaces
CN105912460A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Software test method and system based on QTP
CN106021102A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Automated test file generation method and apparatus
CN106294185A (en) * 2016-08-30 2017-01-04 广州慧睿思通信息科技有限公司 Automated test frames based on five layers of framework and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张灿等: "一种基于Android平台GUI录制回放工具的设计与实现", 《计算机应用与软件》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388509A (en) * 2018-02-07 2018-08-10 平安科技(深圳)有限公司 A kind of method for testing software, computer readable storage medium and terminal device
CN108388509B (en) * 2018-02-07 2020-07-03 平安科技(深圳)有限公司 Software testing method, computer readable storage medium and terminal equipment
CN115576857A (en) * 2022-12-08 2023-01-06 大方智造(天津)科技有限公司 Automatic testing method based on CAM testing engine

Also Published As

Publication number Publication date
CN107423209B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN102855259B (en) Parallelization of massive data clustering analysis
CN112306855B (en) Interface automation test method, device, terminal and storage medium
CN109409835A (en) Visible process configuration method, device, computer equipment and storage medium
CN111090478A (en) ERP system business approval flow configuration method and related device
US10009227B2 (en) Network service provisioning tool and method
CN105095970A (en) Execution method and system of third-party application
CN114218568B (en) Big data attack processing method and system applied to cloud service
CN109361628A (en) Message assemble method, device, computer equipment and storage medium
CN111124871A (en) Interface test method and device
CN110347593A (en) Flow testing method and device
CN108875317A (en) Software clone detection method and device, detection device and storage medium
CN107423209A (en) Method for testing software and device
US11409928B2 (en) Configurable digital twin
CN113672674A (en) Method, electronic device and storage medium for automatically arranging service flow
US5781454A (en) Process modeling technique
US8332254B2 (en) Automatic insertion point identification in model merging operations
CN112651716A (en) Data processing method, device and storage medium
CN106056329A (en) Verification method and system of merchandise inventory
CN113159152B (en) Multi-label prediction method based on tree structure, controller and medium
Schmid An assessment approach to analyzing benefits and risks of product lines
CN106993222A (en) The method and apparatus that visual automation tools are write based on android set top box
CN113886262A (en) Software automation test method and device, computer equipment and storage medium
US10733345B1 (en) Method and system for generating a validation test
CN106779606A (en) Method for processing business and device
TWI676942B (en) A method and system implemented in billing domain by accelerating batch execution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant