CN110069394A - Method for testing software, system, electronic equipment and computer readable storage medium - Google Patents

Method for testing software, system, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110069394A
CN110069394A CN201910185034.5A CN201910185034A CN110069394A CN 110069394 A CN110069394 A CN 110069394A CN 201910185034 A CN201910185034 A CN 201910185034A CN 110069394 A CN110069394 A CN 110069394A
Authority
CN
China
Prior art keywords
test
case
different
use cases
test data
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
CN201910185034.5A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910185034.5A priority Critical patent/CN110069394A/en
Publication of CN110069394A publication Critical patent/CN110069394A/en
Pending legal-status Critical Current

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

This application discloses a kind of method for testing software, system, electronic equipment and computer readable storage mediums, it is executed instruction the described method includes: receiving starting, starting, which executes instruction, indicates at least one test use cases, and test use cases include at least one test case;Under the triggering that starting executes instruction, different test use cases are distributed to different executive devices and are executed;Test case is concentrated different test cases to be distributed to different execution units and executed by executive device, and executive device includes at least one execution unit;The execution unit testing procedure of read test use-case, test data, implementation of test cases from the corresponding test data file of test use cases.Different test use cases are distributed to different executive devices, the different test cases that executive device concentrates test case are distributed to different execution units, and execution while realizing several test use cases greatly improves testing efficiency compared with the prior art.

Description

Method for testing software, system, electronic equipment and computer readable storage medium
Technical field
This application involves software testing technology field, in particular to a kind of method for testing software, system, electronic equipment and meter Calculation machine readable storage medium storing program for executing.
Background technique
Existing method for testing software executes on single machine.Before test, tester is by testing procedure, test data, pre- Phase result inputs in Excel file.When test, instructed by executing the test that tester develops in locally exploitation environment, The read test data from local Excel file, successively implementation of test cases.
The above method is the successively test case on single machine, and when test case is more, the testing time is too long, testing efficiency It is low.
Summary of the invention
In order to solve the low technical problem of testing efficiency in the related technology, this application provides a kind of method for testing software, System, electronic equipment and computer readable storage medium.
A kind of method for testing software, which comprises
It receives starting to execute instruction, the starting, which executes instruction, indicates at least one test use cases, and the test is used Example collection includes at least one test case;
Under the triggering for starting and executing instruction, different test use cases are distributed to different executive devices and are carried out It executes;
Test case is concentrated different test cases to be distributed to different execution units and executed by the executive device, The executive device includes at least one execution unit;
The execution unit testing procedure of read test use-case, survey from the corresponding test data file of test use cases Data are tried, call respective function by the testing procedure, execute the test case using the test data.
In one exemplary embodiment, described different test use cases are distributed to different executive devices to execute Include:
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
In one exemplary embodiment, respective function is called by the testing procedure, executes institute using the test data Stating test case includes:
The interface for calling the testing procedure instruction, inputs the interface for the test data;
Compare the expected results of the test data corresponding interface return value and the test case, the interface returns Value is consistent with the expected results, and the test case runs succeeded, and the inconsistent then described test case executes failure.
In one exemplary embodiment, when the test case executes failure, the method also includes:
By the information of the test case, the information of the interface, execute the test case produced variable in the process Information be written in the test data file;
It receives when continuing to execute instruction, reads the information being written in the test data file, continue to execute institute State test case.
In one exemplary embodiment, the method also includes:
When the information is written to the test data file, the test data file is locked, other tests is forbidden to use Example accesses the test data file.
A kind of software testing system, the system comprises:
Command reception module is executed instruction for receiving starting, and the starting, which executes instruction, indicates at least one test Set of uses case, the test use cases include at least one test case;
Distribution module, under the triggering that the starting executes instruction, different test use cases to be distributed to difference Executive device executed;
Use-case distribution module, for concentrating different test cases to be distributed to not test case in the executive device Same execution unit is executed, and the executive device includes at least one execution unit;
Execution module is used in the execution unit, the read test from test use cases corresponding test data file The testing procedure of use-case, test data, call respective function by the testing procedure, execute the survey using the test data Example on probation.
In one exemplary embodiment, the set of uses case distribution module is configured as executing:
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
In one exemplary embodiment, the execution module is configured as executing:
The interface for calling the testing procedure instruction, inputs the interface for the test data;
Compare the expected results of the test data corresponding interface return value and the test case, the interface returns Value is consistent with the expected results, and the test case runs succeeded, and the inconsistent then described test case executes failure.
A kind of electronic equipment, the electronic equipment include:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by processor When row, foregoing method is realized.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Foregoing method is realized when row.
The technical solution that embodiments herein provides can include the following benefits:
Method for testing software provided by the present application is to receive starting to execute instruction, and starting, which executes instruction, indicates at least one A test use cases, test use cases include at least one test case;Under the triggering that starting executes instruction, by different surveys Examination set of uses case is distributed to different executive devices and is executed;Test case is concentrated different test cases to distribute by executive device It is executed to different execution units, executive device includes at least one execution unit;Execution unit is from test use cases pair The testing procedure of read test use-case, test data, implementation of test cases in the test data file answered.
This method realizes several test use cases by the way that different test use cases to be distributed to different executive devices It is performed simultaneously;It is distributed to different execution units by the different test cases for concentrating test case, is realized in executive device It is executed while several test cases, compared with the prior art, greatly improves testing efficiency.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and in specification it is used to explain the principle of the application together.
Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of method for testing software shown according to an exemplary embodiment;
Fig. 3 is the flow chart of the details of the step 270 shown in corresponding embodiment according to fig. 2;
Fig. 4 is the flow chart according to the method for testing software shown in Fig. 3 corresponding embodiment;
Fig. 5 is a kind of block diagram of software testing system shown according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended Described in claims, the example for the device and method that some aspects of the application are consistent.
Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment.As shown in Figure 1, the implementation ring Border includes control device 110 and at least one executive device 120, and under the control centainly instructed, triggering executes control device 110 Device 120 carries out test case execution.
Control device 110 includes processor and memory, and processor executes the computer-readable instruction stored in memory, Realize the part steps of following method for testing software.
Executive device 120 includes memory and at least one processor.Executive device 120 is able to carry out parallel computation, phase Executive device 120 should be divided for several execution units.When executive device 120 is performed simultaneously several test cases, different execution Unit executes different test cases respectively.
Control device 110 can be installed on different electronic equipments from executive device 120, can also be with executive device 120 are installed on same electronic equipment.Wherein, electronic equipment refers to the computer at least one processor.
Fig. 2 is a kind of flow chart of method for testing software shown according to an exemplary embodiment.This method can be by upper It states control device 110 and executive device 120 executes, as shown in Fig. 2, in one exemplary embodiment, this method includes following step Suddenly.
Step 210, it receives starting to execute instruction, which, which executes instruction, indicates at least one test use cases, test Set of uses case includes at least one test case.
It is computer-readable instruction that starting, which executes instruction, and the corresponding test of device starting for triggering the execution above method is used The execution of example collection.In one exemplary embodiment, it is that control device generates under the triggering of tester that starting, which executes instruction,.
Test use cases are the set of several test cases (Test Case), the test case that same test case is concentrated From data needed for read test in same test data file.
Step 230, under the triggering that starting executes instruction, different test use cases are distributed to different executive devices It is executed.
Executive device includes processor and memory, and memory is used to store the corresponding executable instruction of test use cases, And the corresponding test data file of test use cases, when executable instruction is executed by processor, what implementation of test cases was concentrated Test case.Different executive devices can be installed on same electronic equipment, can also be installed on different electronic equipments.
The execution of test use cases refers to several test cases that implementation of test cases is concentrated.Executive device is able to carry out simultaneously Row calculates, and executes in batches and is distributed to the test case that the test case of itself is concentrated.
In one exemplary embodiment, starting is executed instruction meaning under the triggering that starting executes instruction by control device The several test use cases shown are distributed to several executive devices, and different test use cases are distributed to different executive devices, number A executive device is distributed to the execution of the test use cases of itself simultaneously.
Step 250, test case is concentrated different test cases to be distributed to different execution units and carried out by executive device It executes, executive device includes at least one execution unit.
The corresponding test data file of test use cases is stored in the memory of itself by executive device, is test case The several test cases concentrated distribute execution unit.
In one exemplary embodiment, executive device includes several processors, and different processors corresponds to different execution Unit;In a further exemplary embodiment, the processor in executive device can execute several tasks parallel, and correspondence is divided into several Execution unit.
Step 270, the test step of execution unit read test use-case from the corresponding test data file of test use cases Suddenly, test data calls respective function by testing procedure, uses test data implementation of test cases.
Test data file includes the file for being stored with test data, testing procedure.
Different execution units executes different test cases, and the execution of test case includes: from test data file The testing procedure of read test use-case, test data call respective function by testing procedure, carry out interface calling, will test number Enter ginseng according to as interface.
By the way that different test use cases to be distributed to different executive devices, held while realizing several test use cases Row;It is distributed to different execution units by the different test cases for concentrating test case, realizes several surveys in executive device It is executed while example on probation, compared with the prior art, greatly improves the efficiency of implementation of test cases collection.
In one exemplary embodiment, step 230 includes:
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
In a further exemplary embodiment, executive device tests number from storage according to itself test use cases are distributed to Corresponding test data file is obtained according to the equipment of file.
In a further exemplary embodiment, all test data files can be stored in executive device, executes list Member is directly from the memory read test data file in executive device.
Fig. 3 is the flow chart of the details of the step 270 shown in corresponding embodiment according to fig. 2.As shown in figure 3, in an example In property embodiment, step 270 includes:
Step 271, the interface for calling testing procedure instruction, inputs the interface for test data.
By calling the corresponding function of testing procedure, corresponding interface is executed, test data is entered into ginseng as interface and is inputted.
Step 273, compare the expected results of test data corresponding interface return value and test case, interface return value with Unanimously then the test case runs succeeded expected results, and inconsistent then test case executes failure.
The interface return value of test case is compared with the expected results searched according to test case id.
Test case includes at least one testing procedure, and the execution of testing procedure is the calling of the corresponding interface, testing procedure Interface return value be to call the obtained interface return value of the corresponding interface, the interface return value of test case is that test case is last The interface return value of one testing procedure.
When all testing procedures of test case are carried out successfully, test case runs succeeded, it is contemplated that the result is that test is used Expected obtained interface return value when example runs succeeded.
Fig. 4 is the flow chart according to the method for testing software shown in Fig. 3 corresponding embodiment.As shown in figure 4, exemplary one In embodiment, when the test case executes failure, this method further include:
Step 410, by the information of test case, the information of interface, execute during the test case produced by variable Information is written in corresponding test data file.
Step 430, it receives when continuing to execute instruction, reads the information in write-in test data file, continue to execute The test case.
By the way that test data file is written in above- mentioned information, enable test case from the test step gone to when interrupting Suddenly start to continue to execute.
In one exemplary embodiment, it is further comprising the steps of to implement the method for testing software exemplified according to Fig.4:
When the information is written to test data file, the test data file is locked, forbids other test case access should Test data file.
By being locked to test data file, so that test case is to/from test data file write-in/read test data Shi Buhui interferes the execution of other test cases.
The application is illustrated below according to a specific embodiment.
In one embodiment, before test:
Test environment, including installation jdk, ant, jmeter, python are built in executive device, enable test case It is run in executive device.
Testing procedure is filled in Excel: filling in testing procedure in the cell of Excel, for example, the of same row " registration " is inserted in one cell, inserts " login " in second cell.
Test data is filled in Excel: filling in test data in the cell of Excel, for example, multiple account numbers According to and code data filling " account " page (sheet) in.To make test more fully, account data can be monogram, word Female number combination, Chinese character combination and other combinations that need to be tested, code data can be number combination, alphanumeric with And other combinations that need to be tested.
Expected results are filled in Excel: filling in expected results in the cell of Excel, for example, by " providing a loan successfully " It inserts in " expected results " page.
It is associated with svn by the job on jenkins, test data file (including aforementioned Excel) is uploaded on svn; When job detects that svn has update, from downloading newest test data file on svn into the specified path of executive device.
When test:
The testing procedure in Excel is read, the corresponding function of testing procedure is called, executes the calling of the corresponding interface.For example, When reading " registration ", register () function is called, the calling of registration interface is executed.
When calling interface, enter ginseng as interface by respective paths read test data.For example, login interface is called, by " account Number " account data in page, code data as interface enter ginseng.
The return value of interface is compared with the expected results searched according to test case id, interface return value and expection As a result consistent, then test case runs succeeded, inconsistent, executes failure.For example, test case includes " login ", " loan " survey Try is rapid, in implementation of test cases, comprising:
Login interface is called, the data in " account " page are read, interface return value is " logining successfully ", is found corresponding Expected results are also " logining successfully ", and " login " testing procedure runs succeeded;
Loan interface is called, the data in " amount of the loan " page are read, interface return value is " providing a loan successfully ", finds phase The expected results answered are also " providing a loan successfully ", and " loan " testing procedure runs succeeded, and test case runs succeeded.
When interface return value and expected results are inconsistent, testing procedure executes failure, and test case is interrupted, by malloc failure malloc Interface message, test case id write-in Excel sheet in;When continuing to execute the test case of interruption, write-in is read Above-mentioned data in Excel, the testing procedure after continuing to execute.
Different test use cases are performed in different executive devices, are used for running on the test in executive device Example collection, in the different test cases that different thread implementation of test cases is concentrated, the test case that test case is concentrated is from/to same One Excel reading/writing data.
It is right to prevent different test cases from causing error in data or even deadlock when data are written to same Excel simultaneously Excel is locked.
Different test cases malfunction when data are written to same Excel simultaneously, for example, the first row is written in test case A " 4 " wait the data of the second row " 1 " occur, meanwhile, the second row " 2 " are written in test case B, and the data of the first row is waited to occur "3".Lead to test case A, the B condition to be retired such as always, causes deadlock.
Locking method is, generates lock object, from/to before same Excel reading/writing data, calls lock object Lock method.After having executed to the read operation of Excel, the release method of lock object is called, lock is discharged, is made other Test case is able to access that Excel.
Fig. 5 is a kind of block diagram of software testing system shown according to an exemplary embodiment.In an exemplary embodiment In, as shown in figure 5, the software testing system comprises the following modules.
Command reception module 510 is executed instruction for receiving starting, and the starting, which executes instruction, indicates at least one survey Set of uses case is tried, the test use cases include at least one test case.
Distribution module 530, under the triggering that the starting executes instruction, different test use cases to be distributed to not Same executive device is executed.
Use-case distribution module 550, for concentrating different test cases to be distributed to test case in the executive device Different execution units are executed, and the executive device includes at least one execution unit.
Execution module 570, for reading and surveying from the corresponding test data file of test use cases in the execution unit The testing procedure of example on probation, test data call respective function by the testing procedure, using described in test data execution Test case.
Command reception module 510 and distribution module 530 can be set in the control device 110 shown in Fig. 1, and use-case distributes mould Block 550 can be set in the executive device 120 shown in Fig. 1, and the execution in executive device 120 can be set in execution module 570 In unit.
In one exemplary embodiment, the set of uses case distribution module is configured as executing:
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
In one exemplary embodiment, the execution module is configured as executing:
The interface for calling the testing procedure instruction, inputs the interface for the test data;
Compare the expected results of the test data corresponding interface return value and the test case, the interface returns Value is consistent with the expected results, and the test case runs succeeded, and the inconsistent then described test case executes failure.
The application also provides a kind of electronic equipment, and the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by processor When row, foregoing method is realized.
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.As shown in fig. 6, electronic equipment 600 It may include following one or more components: processing component 602, memory 604, power supply module 606, multimedia component 608, sound Frequency component 610, sensor module 614 and communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and the associated operation of record operation etc..Processing component 602 may include one or more processors 618 to execute Instruction, to complete all or part of the steps of following methods.In addition, processing component 602 may include one or more modules, For convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, use In to facilitate the interaction between multimedia component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes the instruction of any application or method for operating on device 600.Memory 604 can be by any kind of Volatibility or non-volatile memory device or their combination are realized, such as static random access memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red- Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, abbreviation ROM), magnetic memory, flash Device, disk or CD.It is also stored with one or more modules in memory 604, is configured to for the one or more module It is executed by the one or more processors 618, to complete whole/part steps in the above method.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen may include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel. If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel Including one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensor can be with The boundary of a touch or slide action is not only sensed, but also detects duration associated with the touch or slide operation and pressure Power.Screen can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (Microphone, abbreviation MIC), when device 600 is in operation mode, such as call model, logging mode and speech recognition mould When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 604 or via communication component 616 send.In some embodiments, audio component 610 further includes a loudspeaker, for exporting Audio signal.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of device 600, the relative positioning of component, sensor group Part 614 can be with the position change of 600 1 components of detection device 600 or device and the temperature change of device 600.Some In embodiment, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi (Wireless-Fidelity, Wireless Fidelity).Show at one In example property embodiment, communication component 616 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 616 further includes near-field communication (Near Field Communication, abbreviation NFC) module, for promote short range communication.For example, radio frequency identification can be based in NFC module (Radio Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills Art is realized.
In the exemplary embodiment, device 600 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for executing The above method.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey Foregoing method is realized when sequence is executed by processor.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and change can executed without departing from the scope.Scope of the present application is only limited by the accompanying claims.

Claims (10)

1. a kind of method for testing software, which is characterized in that the described method includes:
It receives starting to execute instruction, the starting, which executes instruction, indicates at least one test use cases, the test use cases Include at least one test case;
Under the triggering for starting and executing instruction, different test use cases are distributed to different executive devices and are held Row;
Test case is concentrated different test cases to be distributed to different execution units and executed by the executive device, described Executive device includes at least one execution unit;
The execution unit testing procedure of read test use-case, test number from the corresponding test data file of test use cases According to calling respective function by the testing procedure, the test data used to execute the test case.
2. the method according to claim 1, wherein described be distributed to different hold for different test use cases Luggage is set execute
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
3. the method according to claim 1, wherein respective function is called by the testing procedure, using described Test data executes the test case
The interface for calling the testing procedure instruction, inputs the interface for the test data;
Compare the expected results of the test data corresponding interface return value and the test case, the interface return value with Unanimously then the test case runs succeeded the expected results, and the inconsistent then described test case executes failure.
4. according to the method described in claim 3, it is characterized in that, the method is also wrapped when the test case executes failure It includes:
By the information of the test case, the information of the interface, the letter for executing produced variable during the test case Breath is written in the test data file;
It receives when continuing to execute instruction, reads the information being written in the test data file, continue to execute the survey Example on probation.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When the information is written to the test data file, the test data file is locked, other test cases is forbidden to visit Ask the test data file.
6. a kind of software testing system, which is characterized in that the system comprises:
Command reception module is executed instruction for receiving starting, and the starting, which executes instruction, indicates at least one test case Collection, the test use cases include at least one test case;
Distribution module, under the triggering that the starting executes instruction, different test use cases to be distributed to different hold Luggage, which is set, to be executed;
Use-case distribution module, for concentrating different test cases to be distributed to test case different in the executive device Execution unit is executed, and the executive device includes at least one execution unit;
Execution module is used in the execution unit, the read test use-case from test use cases corresponding test data file Testing procedure, test data, call respective function by the testing procedure, the test data used to execute test use Example.
7. system according to claim 6, which is characterized in that the set of uses case distribution module is configured as executing:
The corresponding test data file of test use cases is distributed to the executive device for executing the test use cases.
8. system according to claim 6, which is characterized in that the execution module is configured as executing:
The interface for calling the testing procedure instruction, inputs the interface for the test data;
Compare the expected results of the test data corresponding interface return value and the test case, the interface return value with Unanimously then the test case runs succeeded the expected results, and the inconsistent then described test case executes failure.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when the computer-readable instruction is executed by processor, Realize the method according to any one of claims 1 to 5.
10. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the computer program The method according to any one of claims 1 to 5 is realized when being executed by processor.
CN201910185034.5A 2019-03-12 2019-03-12 Method for testing software, system, electronic equipment and computer readable storage medium Pending CN110069394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185034.5A CN110069394A (en) 2019-03-12 2019-03-12 Method for testing software, system, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185034.5A CN110069394A (en) 2019-03-12 2019-03-12 Method for testing software, system, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110069394A true CN110069394A (en) 2019-07-30

Family

ID=67366204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185034.5A Pending CN110069394A (en) 2019-03-12 2019-03-12 Method for testing software, system, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110069394A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN108628730A (en) * 2017-03-15 2018-10-09 阿里巴巴集团控股有限公司 Method for testing software, device and system and electronic equipment
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9348569B1 (en) * 2012-09-11 2016-05-24 Emc Corporation Method and system for a configurable automation framework
CN108628730A (en) * 2017-03-15 2018-10-09 阿里巴巴集团控股有限公司 Method for testing software, device and system and electronic equipment
CN108038054A (en) * 2017-12-01 2018-05-15 大唐微电子技术有限公司 A kind of automated testing method and device, computer-readable recording medium
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium

Similar Documents

Publication Publication Date Title
US10490009B2 (en) Electronic device for controlling door lock and method thereof
CN108463832B (en) Electronic device and process execution method based on hardware diagnosis result
CN107105073B (en) Electronic device, auxiliary equipment and information display method using auxiliary equipment
EP3118798B1 (en) Electronic device and payment method using the same
CN110134593B (en) Software testing method and device, electronic equipment and storage medium
CN108632858B (en) Method for providing sharing service and electronic device supporting the same
EP3262583B1 (en) Method and device for controlling payment function
CN110334007A (en) A kind of functional interface calls verification method and device, electronic equipment and storage medium
CN110119354A (en) Method for testing software, device and electronic equipment based on Test cases technology
CN110083527A (en) A kind of generation method and device, electronic equipment of test case
CN106095477B (en) Using mounting device and method
CN110226163B (en) Electronic device and method for controlling biosensor connected with display using the same
KR20170014407A (en) Apparatus and method for controlling a security of electronic device
CN110347672A (en) Verification method and device, the electronic equipment and storage medium of tables of data related update
CN106649098A (en) Method and device for achieving version-release-software debugging on terminal device
CN106528113A (en) File compiling method and apparatus
CN107786729A (en) A kind of operating system update method and terminal
CN106201787A (en) Terminal control method and device
CN110069394A (en) Method for testing software, system, electronic equipment and computer readable storage medium
CN110046095B (en) System integration method and device based on test flow improvement
CN110716914A (en) Database configuration method, system, computer readable storage medium and terminal equipment
EP4220406B1 (en) Action undo service based on cloud platform
CN107733674A (en) Component upgrade method and terminal
CN105721569A (en) Method, device and system for controlling mobile terminal
US8819495B2 (en) Application harnessing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: Pingan Pu Hui Enterprise Management Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Pingan Pu Hui Enterprise Management Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination