CN108009093A - A kind of method for testing software, apparatus and system - Google Patents

A kind of method for testing software, apparatus and system Download PDF

Info

Publication number
CN108009093A
CN108009093A CN201711405787.XA CN201711405787A CN108009093A CN 108009093 A CN108009093 A CN 108009093A CN 201711405787 A CN201711405787 A CN 201711405787A CN 108009093 A CN108009093 A CN 108009093A
Authority
CN
China
Prior art keywords
test
source code
server
driver
test server
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
CN201711405787.XA
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.)
BEIJING CHINA TSP TECHNOLOGY Co Ltd
Original Assignee
BEIJING CHINA TSP 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 BEIJING CHINA TSP TECHNOLOGY Co Ltd filed Critical BEIJING CHINA TSP TECHNOLOGY Co Ltd
Priority to CN201711405787.XA priority Critical patent/CN108009093A/en
Publication of CN108009093A publication Critical patent/CN108009093A/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/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Landscapes

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

Abstract

The present invention provides a kind of method for testing software, apparatus and system, wherein, which includes:Test server and at least one source code editor terminal;Source code editor terminal, source code editor is carried out for the operation based on user, and after communication connection is established with test server, the source code for editing completion is uploaded to test server;Test server, for receiving source code, parses source code, and test driver is generated based on the source code information obtained after parsing;The test driver is used to be performed by the test server, completes the test to the source code.The embodiment of the present invention, which has, tests efficient good effect.

Description

A kind of method for testing software, apparatus and system
Technical field
The present invention relates to field of computer technology, in particular to a kind of method for testing software, apparatus and system.
Background technology
Program is after completion is encoded, it is necessary to test source code, to examine whether source code can reach pre- The effect of phase;Inventor has found that in the prior art, progress unit testing is often research staff to write in VS under study for action Source code, while be also that research staff oneself writes unit testing use-case and tested, this can cause to test insufficient, research and develop people Member may have the subjective opinion to oneself code in design test case, it is believed that some parts need not be tested or cannot send out Omission in oneself existing test case.And then cause less efficient, and workload is larger.
The content of the invention
In view of this, it is an object of the invention to provide a kind of software testing system and method, to improve test effect Rate, and reduce the amount of labour of staff.
In a first aspect, an embodiment of the present invention provides a kind of software testing system, including:Test server and at least one Source code editor terminal;
The source code editor terminal, source code editor is carried out for the operation based on user, and is taken with the test It is engaged in after device foundation communication connection, the source code for editing completion is uploaded to the test server;
The test server, for receiving the source code, parses the source code, based on being obtained after parsing Source code information generation test driver.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiment of first aspect, wherein, institute Source code editor terminal is stated, is additionally operable to:
After the source code editor completes, the source code is compiled, generates test case file;
The test case file is uploaded to the test server.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides second of first aspect Possible embodiment, wherein, the test server, is additionally operable to:
The test case file is received, after test driver is generated, the test case file is write into institute State in test driver, perform testing procedure, obtain the result information of use-case execution.
Second of possible embodiment with reference to first aspect, an embodiment of the present invention provides the third of first aspect Possible embodiment, wherein, the result information that the test case performs, including:Test whether the conclusion information passed through, with And the positional information and wrong content of the obstructed time-out error generation of test.
Second of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 4th kind of first aspect Possible embodiment, wherein, the test server, is additionally operable to:
The result information that the obtained test case performs is sent to the source code editor terminal.
With reference to first aspect, an embodiment of the present invention provides the 5th kind of possible embodiment of first aspect, wherein, institute Source code editor terminal is stated, is additionally operable to:
Send and ask to the test server, obtain the test server current network degree load value;
According to the current network load degree value of the test server, the default minimum bandwidth for meeting upload condition with And calculating actual bandwidth is carried out from the maximum amount of data of source code editor terminal arrival test server in sending cycle;
By the actual bandwidth compared with specific bandwidth, if the actual bandwidth is more than specific bandwidth, The source code for editing completion is uploaded to the test server.
Second aspect, the embodiment of the present invention additionally provide a kind of method for testing software, the method, including:
Receive the source code that source code editor terminal uploads;
The source code is parsed;
Generation test driver is carried out based on the source code information obtained after parsing;The test driver is used for quilt Perform, to complete the test to the source code.
With reference to second aspect, an embodiment of the present invention provides the first possible embodiment of second aspect, wherein, institute Method is stated, is further included:
Receive the test case file that the source code editor terminal is sent;
It is described after test driver is generated, further include:
The test case file is write in the test driver, testing procedure is performed, obtains test case and hold Capable result information.
With reference to the first possible embodiment of second aspect, an embodiment of the present invention provides second of second aspect Possible embodiment, wherein, the method, further includes:
The result information that the test case performs is sent to the source code editor terminal.
The third aspect, an embodiment of the present invention provides a kind of software testing device, which includes:
Receiving module, for receiving the source code of source code editor terminal upload;
Parsing module, for being parsed to the source code, the source code information after being parsed;
Test program generation module, for carrying out generation test driver based on the source code information after the parsing; The test driver is used to be performed, to complete the test to the source code.
A kind of software testing system provided in an embodiment of the present invention and method, source generation is carried out using in source code editor terminal Code editor, and the source code is sent to test server after source code editor completes and is tested;With in the prior art , carried out building test environment by program editing personnel, then carry out test and compare, there is efficient good effect.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structure diagram for software testing system that one embodiment of the invention is provided;
Fig. 2 shows a kind of flow diagram for method for testing software that another embodiment of the present invention is provided;
Fig. 3 shows a kind of structure diagram for software testing device that another embodiment of the present invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention Middle attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only It is part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is real Applying the component of example can be arranged and designed with a variety of configurations.Therefore, it is of the invention to what is provided in the accompanying drawings below The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on the embodiment of the present invention, institute that those skilled in the art are obtained on the premise of creative work is not made There is other embodiment, belong to the scope of protection of the invention.
In view of, often being carried out writing source code in the prior art by research staff, while it is also that research staff is compiled R/w cell test case is tested, and then causes to test insufficient;Based on this, an embodiment of the present invention provides a kind of survey of software Method for testing, apparatus and system, are described below by embodiment.
A kind of software testing system is provided in one embodiment of the present of invention, with reference to shown in Fig. 1, the software testing system Including:Test server 101 and at least one source code editor terminal 102 are only exemplified in Fig. 1, it is necessary to explanation There are three source code editor terminals 102 in system.
Above-mentioned source code editor terminal 102, source code editor is carried out for the operation based on user, and is taken with test It is engaged in after device foundation communication connection, under the operation of user, the source code for editing completion is uploaded to test server 101;
The source code editor terminal 102 can be the terminal devices such as personal PC (computer), tablet computer, mobile phone, the source The quantity of Code Edit terminal can be one, it is preferable that the quantity of source code editor terminal is multiple, and source code editor is whole It can be wired connection or connected in a manner of wireless communication between end 102 and test server 101, it is therefore preferable to channel radio The mode of letter is communicatively coupled, and then can realize the telecommunication between source code editor terminal and test server.Need It is noted that the source code editor terminal is before the source code for writing completion is sent to test server is tested, Need to take the authority that test server is distributed, i.e. test server is needed in advance for each source code editor terminal distribution power Limit.Exemplarily, source code editor terminal takes to test first before the source code that editor completes is uploaded to test server Business device sends data upload requests, and the mark of source code editor terminal is carried in the data upload requests, and test server exists After the data upload requests for receiving source code transmission, Authority Verification is carried out to the mark that source code editor is interrupted, is being tested After card passes through, send and prompt to source code editor terminal, prompt source code editor terminal to carry out the upload of source code.
Above-mentioned test server 101, the source code uploaded for receiving above-mentioned source code editor terminal, to the source code into Row parsing, test driver is generated based on the source code information obtained after parsing.The test driver is used for tested clothes Business device performs, and carries out the test to the source code.
In specific practical application, above-mentioned test server 101 needs to meet the following conditions:Support the upper of source code Pass, the generation of test driver and possess test driver and run required environment;For example, above-mentioned test server 101 can operate in Windows Server 2003 and the version of the above, for another example can operate in Linux 3.11 And the kernel version (by taking Ubuntu as an example, can usually support Ubuntu 12.04 and above version) of the above;In test server Need that Version Control class service, such as SVN, GIT are installed;Test server end need install for C C++ compilation of source code and The software environment of operation.Above-mentioned software editing terminal needs to meet can be to test server end into the submission of line code, and can To normally receive the condition of mail;Each software editing terminal needs to be registered by mailbox in test server, Easy to information such as receipt of subsequent test results, the authority such as submission of code is limited by Version Control software.
Software testing system provided in the present embodiment, can allow user to carry out source generation on source code editor terminal Code editor, and after source code editor is completed, the source code which completes is uploaded to test server, taken by test Business device completes the test to the source code;And then avoid and need research staff to build test environment in the prior art to be surveyed The existing low and tedious problem of efficiency of examination.
In the present embodiment, above-mentioned source code editor terminal is additionally operable to after source code editor completes, to the source code It is compiled, after compiling passes through, the set content based on user, generates test case file;Specifically, user can survey The source file in example text part according to predetermined form write-in test, the function name in source file are tried out, user is in each function Test case is edited under one's name, and each test case is separated with separator, includes function in the test case file (for example, it may be value of the type of input variable and input variable) and anticipated output are inputted (for example, it may be anticipated output becomes The type of amount and the value of output variable);After test case file is generated, source code editor terminal uses source code and test Example text part uploads to test server;Test server receives the source code and test case file, and source code is parsed, After source code information generation test driver is obtained after parsing, the test case file received is write into test and is driven In dynamic program, test server starts to perform testing procedure, and obtains the result information of test case execution.
Specifically, after test server receives above-mentioned source code and test case file, to the source code and survey Example text part on probation is analyzed, and judges whether it is effectively file in source code and test case, if it is not, then testing service Device does not make any processing to this upload, directly skips the detection of all testing procedure preparations next time;If so, at this time Include the source code and test case file of renewal in the data of biography, then parsed source code, by morphology interpreter, Grammar explanation device carries out deep analysis to source code structure, by the header file in source code, macrodefinition, identifier (i.e. variable Name, function name etc.), function parameter, sentence, branch, circulation, function internal code block etc. parsed and identified, and be saved in In interim file;Source code information after extraction parsing, test driver, the test driver are generated using the information By the compiler-creating at test server end, such as can be C or C++ compilers;Increase in the test driver of establishment Add all source files corresponding with source code, header file reference, variable, macrodefinition in each source file etc. are and source code File corresponds, and to ensure test driver energy normal compilation and operation, and guarantees to call the function in source code.
After test driver creates successfully, the test case that test server extraction source Code Edit terminal uploads is literary Part, test server by the setting value of each test case of the data separation such as source filename, function name and cut-off rule, The type of input variable and the value of input variable of each test case are extracted in circulation in test case file, and expected defeated Go out the value of type of variables and output variable, the value of the type of input variable and input variable is written in Test driver file Test function in, and write use-case input after, using set use-case input be used as function parameter, calling source code in Function, is contrasted default anticipated output in the reality output of function and test case file after function performs, Cyclically all test cases are written in Test driver according to this, obtain test result.
In the source code that test server end, source code editor terminal upload every time, test server can carry out source generation The parsing of code, generates test driver, and test server writes test case file to the test driver, every time solution The temporary file generated after analysis is automatically deleted after Test driver is generated, and the test driver generated every time can be preserved independently In a new folder and it is stored in test server;
After included all test cases in Test driver, at test server end, compiler (such as can be C Or C++ compilers) in the environment of testing results driving engineering.
The result information that above-mentioned use-case performs, including:Test whether the conclusion information passed through, and test is obstructed out-of-date The positional information and wrong content that mistake occurs.
Above-mentioned test server is additionally operable to:The result information that obtained use-case performs is sent whole to source code editor End, so that research staff is checked.
And then the research staff of source code editor terminal side can judge source by checking the result information of use-case execution Code tester whether by, and obstructed out-of-date, the content of the positional information that mistake occurs and mistake can be understood in time, into And can be carried out searching the mistake according to the positional information, and modified according to the content of mistake.
Specifically, test server after Test driver engineering operation, is protected after the completion of being run by each use-case The use-case execution result information deposited carries out statistic of classification, and collects last test result statistical information and preserve;The test knot Can include in fruit:The source filename of test, the function name of test, the use-case name of test, the use-case numbering of test, test Whether the input of use-case, the anticipated output of test case, the reality output of test case, test case pass through the branch of, function The sentence covering rate etc. of coverage rate, function.And then referred to for research staff or tester.
All whether test server is after the statistical information of test result is got, by judging all test cases By and the coverage rate of function whether entirely reach 100%, and then judge that this tests whether to pass through;Test server, It can test whether that the conclusion that passes through and all test result statistical informations are sent in the form of mail by and by this The source code editor terminal (being, for example, remote computer) of registration mailbox.When source code editor terminal (being, for example, remote computer) After the test result mail for receiving the transmission of test server end, test result is checked by research staff, if test passes through, Research staff can be after continuing new source code;If test is by the way that research staff needs the detailed knot according to test Fruit changes source code, or by research and development tester change case designing, submit to be modified to test clothes after the completion of modification again Business device end;It is efficient, and save the amount of labour.
Software testing system provided in the present embodiment, is to be automatically generated Test driver work at test server end Journey, it is not necessary to research and develop tester oneself create testing engineering, write test case code etc., research and development tester only need Simply design the input parameter of each use-case and the value of anticipated output parameter, test server end can automatically will be designed Use-case writes test driver, eliminates writing for substantial amounts of test case code.
In a possible embodiment, above-mentioned source code editor terminal, is additionally operable to:
Send and ask to test server, obtain test server current network degree load value;
According to the current network load degree value of test server, the default minimum bandwidth for meeting upload condition and sending out The maximum amount of data for reaching test server in the cycle from the source code editor terminal is sent to carry out calculating actual bandwidth;
By actual bandwidth compared with specific bandwidth, if actual bandwidth is more than specific bandwidth, it will edit Into source code be uploaded to the test server.
Specifically, above-mentioned source code editor terminal can carry out calculating actual bandwidth according to equation below (1),
A=max (I, E × W (L)) (1)
Wherein, A is actual bandwidth, and I is the default minimum bandwidth for meeting upload condition, and E is interior from source generation for sending cycle Code editor terminal reaches the maximum amount of data of test server, and L is network load degree value, and W (L) is according to network load degree The weights that the change of value is changed.
Can be sent by the source code for editing completion to test server in source code editor terminal in the present embodiment Before, the current network load degree value of acquisition request test server is first sent, and when actual bandwidth reaches upload condition, Source code is uploaded to test server, and then ensure that security and high efficiency that source code uploads.
A kind of method for testing software is provided in an alternative embodiment of the invention, with reference to shown in Fig. 2, this method is included such as Lower step:
S201, receive the source code that source code editor terminal uploads;
Operation of the source code editor terminal based on user carries out source code editor, and is establishing communication link with test server After connecing, the source code for editing completion is uploaded to test server.
S202, parse the source code;
S203, based on the source code information obtained after parsing carry out generation test driver;The test driver For being performed, to complete the test to the source code.
The above method, further includes:Receive the test case file that the source code editor terminal is sent;
It is described after test driver is generated, further include:
The test case file is write in the test driver, performs testing procedure, obtains use-case execution Result information.
Source code editor terminal is compiled the source code after the source code editor completes, generation test Use-case file;The test case file is uploaded to the test server.
The above method, further includes:The result information that the use-case performs is sent to the source code editor terminal.Test Server receives the test case file, after test driver is generated, by described in test case file write-in In test driver, testing procedure is performed, obtains the result information of use-case execution, and the result information that the use-case is performed Send to the source code editor terminal.
Specifically, by taking source code editor terminal is remote computer as an example, user is on the remote computer into edlin source Code, is compiled after source code editor completes, and the generation test case file of the input based on user;Source code editor The source code and test case file that terminal completes the editor are uploaded to test server, and test server receives the source code And test case file, and determine whether the source code and test case file are effectively source code and test case File, if it is, being parsed to source code, test driver is generated based on the obtained source code information after parsing, The test driver is used to be performed the test for carrying out source code, and test case file is write Test driver, testing service Device performs Test driver, obtains the execution result information of test case, the execution result information, including:Test whether what is passed through Conclusion information, and the positional information and wrong content of the obstructed time-out error generation of test.
Test server sends above-mentioned test execution result information to source code editor terminal, source in the form of mail Code Edit terminal receives implementing result mail, when judging that test passes through according to the conclusion information for testing whether to pass through, the test Process terminates, obstructed out-of-date when testing, and continues the editing of source code.
In another embodiment of the invention, there is provided a kind of software testing device, with reference to shown in Fig. 3, which includes:
Receiving module 301, for receiving the source code of source code editor terminal upload;
Parsing module 302, for being parsed to the source code, the source code information after being parsed;
Test program generation module 303, for carrying out generation Test driver journey based on the source code information after the parsing Sequence;The test driver is used to be performed, to complete the test to the source code.
The device for the software test that the embodiment of the present invention is provided can be that the specific hardware or be installed in equipment is set Standby upper software or firmware etc..The technique effect of the device that the embodiment of the present invention is provided, its realization principle and generation and foregoing Embodiment of the method is identical, and to briefly describe, device embodiment part does not refer to part, refers to corresponding in preceding method embodiment Content.It is apparent to those skilled in the art that for convenience and simplicity of description, system described above, dress The specific work process with unit is put, may be referred to the corresponding process in above method embodiment, details are not described herein.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by others side Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, is only that one kind is patrolled Function division is collected, there can be other dividing mode when actually realizing, in another example, multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in embodiment provided by the invention can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, test server, or network equipment etc.) perform all or part of step of each embodiment the method for the present invention Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing, in addition, term " the One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Finally it should be noted that:Embodiment described above, is only the embodiment of the present invention, to illustrate the present invention Technical solution, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify the technical solution described in previous embodiment or can be light It is readily conceivable that change, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical solution of the embodiment of the present invention.The protection in the present invention should all be covered Within the scope of.Therefore, protection scope of the present invention answers the scope of the claims of being subject to.

Claims (10)

  1. A kind of 1. software testing system, it is characterised in that including:Test server and at least one source code editor terminal;
    The source code editor terminal, for based on user operation carry out source code editor, and with the test server Establish after communication connection, the source code for editing completion is uploaded to the test server;
    The test server, for receiving the source code, parses the source code, the source code after being parsed Information, and test driver is generated based on the source code information obtained after parsing;The test driver is used for described Test server performs, and completes the test to the source code.
  2. 2. system according to claim 1, it is characterised in that the source code editor terminal, is additionally operable to:
    After the source code editor completes, the source code is compiled, generates test case file;
    The test case file is uploaded to the test server.
  3. 3. system according to claim 2, it is characterised in that the test server, is additionally operable to:
    The test case file is received, after test driver is generated, the test case file is write into the survey Try in driver, perform testing procedure, obtain the result information of test case execution.
  4. 4. system according to claim 3, it is characterised in that the result information that the test case performs, including:Test The conclusion information whether passed through, and the positional information and wrong content of the obstructed time-out error generation of test.
  5. 5. system according to claim 3, it is characterised in that the test server, is additionally operable to:
    The result information that the obtained test case performs is sent to the source code editor terminal.
  6. 6. system according to claim 1, it is characterised in that the source code editor terminal, is additionally operable to:
    Send and ask to the test server, obtain the test server current network degree load value;
    According to the current network load degree value of the test server, the default minimum bandwidth for meeting upload condition and The maximum amount of data for reaching test server in sending cycle from the source code editor terminal carries out calculating actual bandwidth;
    By the actual bandwidth compared with specific bandwidth, if the actual bandwidth is more than specific bandwidth, it will compile Collect the source code completed and be uploaded to the test server.
  7. A kind of 7. method for testing software, it is characterised in that including:
    Receive the source code that source code editor terminal uploads;
    The source code is parsed;
    Generation test driver is carried out based on the source code information obtained after parsing;The test driver is used to be held OK, with test of the completion to the source code.
  8. 8. the method according to the description of claim 7 is characterized in that further include:
    Receive the test case file that the source code editor terminal is sent;
    It is described after test driver is generated, further include:
    The test case file is write in the test driver, performs testing procedure, obtains test case execution Result information.
  9. 9. according to the method described in claim 8, it is characterized in that, further include:
    The result information that the test case performs is sent to the source code editor terminal.
  10. A kind of 10. software testing device, it is characterised in that including:
    Receiving module, for receiving the source code of source code editor terminal upload;
    Parsing module, for being parsed to the source code, the source code information after being parsed;
    Test program generation module, for carrying out generation test driver based on the source code information after the parsing;It is described Test driver is used to be performed, to complete the test to the source code.
CN201711405787.XA 2017-12-22 2017-12-22 A kind of method for testing software, apparatus and system Pending CN108009093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711405787.XA CN108009093A (en) 2017-12-22 2017-12-22 A kind of method for testing software, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711405787.XA CN108009093A (en) 2017-12-22 2017-12-22 A kind of method for testing software, apparatus and system

Publications (1)

Publication Number Publication Date
CN108009093A true CN108009093A (en) 2018-05-08

Family

ID=62060699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711405787.XA Pending CN108009093A (en) 2017-12-22 2017-12-22 A kind of method for testing software, apparatus and system

Country Status (1)

Country Link
CN (1) CN108009093A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901185A (en) * 2020-06-05 2020-11-06 厦门亿联网络技术股份有限公司 Account number management method and device for VoIP phone automatic test system
CN113157263A (en) * 2021-04-27 2021-07-23 腾讯科技(深圳)有限公司 Code editing method and device
CN113934636A (en) * 2021-10-25 2022-01-14 中国航空工业集团公司成都飞机设计研究所 Automatic generation system and method for mass test drivers

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334219B2 (en) * 2002-09-30 2008-02-19 Ensco, Inc. Method and system for object level software testing
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN103019936A (en) * 2012-12-06 2013-04-03 武汉华中数控股份有限公司 Numerical control software testing system
US20130086558A1 (en) * 2011-09-29 2013-04-04 Microsoft Corporation Testing Program Code in Multiple Process Modes
US8510716B1 (en) * 2006-11-14 2013-08-13 Parasoft Corporation System and method for simultaneously validating a client/server application from the client side and from the server side
GB2508643A (en) * 2012-12-07 2014-06-11 Ibm Method for Performing a Regression Test after Modifying Source Code File
CN104850499A (en) * 2015-06-10 2015-08-19 北京华力创通科技股份有限公司 Automatic test method and device for base band software
CN104850491A (en) * 2014-02-19 2015-08-19 深圳中兴网信科技有限公司 Software test method, equipment and system
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN106326115A (en) * 2016-08-17 2017-01-11 北京奇虎科技有限公司 Method, device and system for testing application programming interfaces (APIs)
CN106326122A (en) * 2016-08-23 2017-01-11 北京精密机电控制设备研究所 Software unit test case management system
CN106681912A (en) * 2016-12-08 2017-05-17 武汉斗鱼网络科技有限公司 Method and device for automatic testing of code coverage rate, applied to Android system
CN106708740A (en) * 2017-01-10 2017-05-24 网易(杭州)网络有限公司 Script testing method and device
CN107133175A (en) * 2017-05-04 2017-09-05 郑州云海信息技术有限公司 A kind of software test platform based on cloud computing
CN107145438A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 Code test method, code tester device and code tester system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334219B2 (en) * 2002-09-30 2008-02-19 Ensco, Inc. Method and system for object level software testing
US8510716B1 (en) * 2006-11-14 2013-08-13 Parasoft Corporation System and method for simultaneously validating a client/server application from the client side and from the server side
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
US20130086558A1 (en) * 2011-09-29 2013-04-04 Microsoft Corporation Testing Program Code in Multiple Process Modes
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN103019936A (en) * 2012-12-06 2013-04-03 武汉华中数控股份有限公司 Numerical control software testing system
GB2508643A (en) * 2012-12-07 2014-06-11 Ibm Method for Performing a Regression Test after Modifying Source Code File
CN104850491A (en) * 2014-02-19 2015-08-19 深圳中兴网信科技有限公司 Software test method, equipment and system
CN104850499A (en) * 2015-06-10 2015-08-19 北京华力创通科技股份有限公司 Automatic test method and device for base band software
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN107145438A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 Code test method, code tester device and code tester system
CN106326115A (en) * 2016-08-17 2017-01-11 北京奇虎科技有限公司 Method, device and system for testing application programming interfaces (APIs)
CN106326122A (en) * 2016-08-23 2017-01-11 北京精密机电控制设备研究所 Software unit test case management system
CN106681912A (en) * 2016-12-08 2017-05-17 武汉斗鱼网络科技有限公司 Method and device for automatic testing of code coverage rate, applied to Android system
CN106708740A (en) * 2017-01-10 2017-05-24 网易(杭州)网络有限公司 Script testing method and device
CN107133175A (en) * 2017-05-04 2017-09-05 郑州云海信息技术有限公司 A kind of software test platform based on cloud computing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901185A (en) * 2020-06-05 2020-11-06 厦门亿联网络技术股份有限公司 Account number management method and device for VoIP phone automatic test system
CN113157263A (en) * 2021-04-27 2021-07-23 腾讯科技(深圳)有限公司 Code editing method and device
CN113934636A (en) * 2021-10-25 2022-01-14 中国航空工业集团公司成都飞机设计研究所 Automatic generation system and method for mass test drivers

Similar Documents

Publication Publication Date Title
CN104407980B (en) Mobile solution automatic test device and method
CN108427646B (en) Android App automatic test framework construction method and device based on Apium
CN110532169A (en) Interface testing case generation method, device, computer equipment and storage medium
CN103577324B (en) Static detection method for privacy information disclosure in mobile applications
CN104268079B (en) A kind of method and system of POS Application testings
CN102421112B (en) Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
CN107797923A (en) Code coverage rate analysis method and application server
CN108009093A (en) A kind of method for testing software, apparatus and system
CN105912473A (en) BDD-based mobile APP automatic testing platform and testing method
CN107463500A (en) Adjustment method, medium, system and the computing device of test script
CN105303112A (en) Component calling bug detection method and apparatus
CN108345540A (en) Application test systems, method, equipment based on privately owned cloud platform and storage medium
CN113760730B (en) Automatic test method and device
CN103973858A (en) Automatic testing system of mobile terminals
CN108170600A (en) The coverage rate statistical method of front-end code test, apparatus and system
CN107204898A (en) Production test method, system and the storage device of intelligent appliance, mobile terminal
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
CN108039173A (en) Voice messaging input method, mobile terminal, system and readable storage medium storing program for executing
CN113032257A (en) Automatic test method, device, computer system and readable storage medium
CN107122291A (en) Mobile terminal software stability test method and apparatus
CN112306857A (en) Method and apparatus for testing applications
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN104156430A (en) Device and method for fast extracting Android mobile phone data
CN107509215A (en) A kind of wireless authentication automated testing method and system
CN112115060A (en) Audio test method and system based on terminal

Legal Events

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

Application publication date: 20180508

RJ01 Rejection of invention patent application after publication