CN106371990A - Testing method and testing system of concurrent processing capability of interactive software - Google Patents

Testing method and testing system of concurrent processing capability of interactive software Download PDF

Info

Publication number
CN106371990A
CN106371990A CN201610770899.4A CN201610770899A CN106371990A CN 106371990 A CN106371990 A CN 106371990A CN 201610770899 A CN201610770899 A CN 201610770899A CN 106371990 A CN106371990 A CN 106371990A
Authority
CN
China
Prior art keywords
test script
equipment
test
interactive software
client
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
CN201610770899.4A
Other languages
Chinese (zh)
Other versions
CN106371990B (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.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital 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 Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201610770899.4A priority Critical patent/CN106371990B/en
Publication of CN106371990A publication Critical patent/CN106371990A/en
Application granted granted Critical
Publication of CN106371990B publication Critical patent/CN106371990B/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 relates to the field of testing and particularly relates to a testing method and a testing system of a concurrent processing capability of interactive software. The testing method comprises: pre-setting testing scripts of a server and a client of pre-set interactive software to be tested and automatically sending the testing scripts to equipment which is provided with the server and the client of the pre-set interactive software to be tested; after the equipment receives the testing scripts, automatically carrying out corresponding testing scripts, so as to realize automatic testing of the interactive software arranged on large-scale equipment; and controlling all the clients to submit data to the server at the same time by pre-setting waiting duration, so as to test the concurrent processing capability of the interactive software.

Description

A kind of method of testing of interactive software oncurrent processing ability and system
Technical field
The present invention relates to field tests, more particularly, to a kind of method of testing of interactive software oncurrent processing ability and be System.
Background technology
Interactive software generally includes client and server end, exists a large amount of generally between client and server end Interactive operation, therefore, be inevitably present use to a high-profile, the situation of high concurrent that is to say, that certain time period even certain In one moment, there are a large amount of client to submit to or acquisition request data, this is for the server of interactive software simultaneously It is larger test, the situation of server crash easily occurs, has a strong impact on Consumer's Experience.Therefore, before reaching the standard grade, it is right to need Interactive software carries out the test of oncurrent processing ability.
Prior art is tested to the oncurrent processing ability of software although being capable of simulation softward mostly in virtual machine Run mode, improves the accuracy of test result, but virtual machine and real equipment have differences it is impossible to completely truly anti-all the time Mirror the situation that software runs in real equipment.
Content of the invention
The technical problem to be solved is: provide a kind of method of testing of interactive software oncurrent processing ability and System, realizes the oncurrent processing ability that automatically testing is deployed in the interactive software in large-scale equipment.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is:
The present invention provides a kind of method of testing of interactive software oncurrent processing ability, comprising:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, from described first test script set obtain one first test script, and will described one first test foot This sends to described first equipment;Corresponding with described one first test script the is obtained from described second test script set Two test scripts, and described second test script is sent the second equipment to described second cluster tool;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to.
The present invention also provides a kind of test system of interactive software oncurrent processing ability, comprising:
First presetting module, for presetting interactive software to be measured;Described interactive software includes client and server End;
First acquisition module, for obtaining the first equipment of the server end disposing described interactive software to be measured;Obtain Dispose the second equipment of the client of described interactive software to be measured, obtain the second cluster tool;
Second presetting module, for default first test foot corresponding with the server end of described interactive software to be measured This, form the first test script set;Preset second test script corresponding with the client of described interactive software to be measured, shape Become the second test script set;
Second acquisition module, for obtaining one first test script from described first test script set, and will be described One first test script sends to described first equipment;Obtain from described second test script set and described one first test Corresponding second test script of script, and described second test script is sent to described second cluster tool second set Standby;
3rd presetting module, for presetting waiting time;
3rd acquisition module, for obtaining present system time, obtains client and starts the testing time;
Performing module, parses and executes described one first test script for described first equipment;Described second equipment collection The second equipment in conjunction parses and executes described second test script;
4th acquisition module, for obtaining present system time, present system time is deducted described client and starts to survey The examination time, obtain client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to institute The server end stating interactive software to be measured submits the operation of data to, continues waiting for;Otherwise: execute soft to described interactive mode to be measured The server end of part submits the operation of data to.
The beneficial effects of the present invention is: by presetting waiting time before the corresponding test script of client executing, When the time executing test script being more than described waiting time, client executing is just allowed to submit the behaviour of data to server end Make, controllable all clients synchronization submits data to server end, thus the concurrent processing of interactive software can be tested Ability;By the default server end of interactive software to be measured and the test script of client, and automatically by described test script Send to disposing the server end of interactive software to be measured or the equipment of client, after described equipment receives test script, Automatically execute corresponding test script, realize test automatically and be deployed in the interactive software in large-scale equipment.
Brief description
Fig. 1 is a kind of FB(flow block) of the method for testing of present invention interactive software oncurrent processing ability;
Fig. 2 is a kind of structured flowchart of the test system of present invention interactive software oncurrent processing ability;
Label declaration:
1st, the first presetting module;2nd, the first acquisition module;3rd, the second presetting module;4th, the second acquisition module;5th, the 3rd is pre- If module;6th, the 3rd acquisition module;7th, performing module;8th, the 4th acquisition module.
Specific embodiment
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate attached Figure is explained.
The design of most critical of the present invention is: by before the corresponding test script of client executing, default waiting time, When the time executing test script being not less than described waiting time, client executing is just allowed to submit data to server end Operation, controllable all clients synchronization submits data to server end, thus the concurrently place of interactive software can be tested Reason ability.
As shown in figure 1, the present invention provides a kind of method of testing of interactive software oncurrent processing ability, comprising:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, from described first test script set obtain one first test script, and will described one first test foot This sends to described first equipment;Corresponding with described one first test script the is obtained from described second test script set Two test scripts, and described second test script is sent the second equipment to described second cluster tool;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to.
Wherein, there is interactive operation, in order to test friendship between the server end of described interactive software to be measured and client The mutually oncurrent processing ability of formula software, all second equipment in described second cluster tool have been carried out in test script at this After the operation of ground execution, then execute the operation submitting data to server end to simultaneously.Described acquisition disposes described interactive mode to be measured First equipment of the server end of software;Obtain the second equipment of the client disposing described interactive software to be measured, obtain the Two cluster tool, including obtain the unique mark identifier of relevant device, ip address, device name, system version number, internal memory, The facility informations such as cpu, resolution, producer.In order to test the server end of interactive software to be measured, corresponding test foot should be preset This, because described server end includes multi-user scene it is therefore desirable to be each user's scene composition test script.Due to service Exist between device end and client and interact it is therefore desirable to preset the test with the different user scene in server end for client The corresponding test script of script, the operation of simulation in the test script at client and server end is interactive operation.It is deployed with In the equipment at client and server end of interactive software to be measured, resolver is installed, described resolver can be used for receiving and holds Row test script.
Further, obtain one first test script from described first test script set, and described one first is surveyed Training originally sends to described first equipment, particularly as follows:
Random from described first test script set obtain one first test script, and by described one first test script Send to described first equipment.
Seen from the above description, the test script of service end can be obtained at random, thus realizing random test any user field Scape.
Further, obtain one first test script from described first test script set, and described one first is surveyed Training originally sends to described first equipment, particularly as follows:
Default one first test script;Described one first test script belongs to the first test script set;
Send described one first test script to described first equipment.
Seen from the above description, the nominative testing script of service end can be obtained, thus realizing testing specified user's scene.
Further, obtain second survey corresponding with described one first test script from described second test script set Training originally, and described second test script is sent the second equipment to described second cluster tool, particularly as follows:
Obtain second test script corresponding with described one first test script, obtain the 3rd test script set;
Random acquisition one the 3rd test script from described 3rd test script set;
Send the second equipment to described second cluster tool for described one the 3rd test script.
Seen from the above description, can achieve the same test script of client executing of all interactive software to be measured, thus When can test all of client and making same reaction simultaneously, if abnormal conditions occur.
Further, obtain second survey corresponding with described one first test script from described second test script set Training originally, and described second test script is sent the second equipment to described second cluster tool, particularly as follows:
Obtain second test script corresponding with described one first test script, obtain the 3rd test script set;
Obtain the quantity of the second equipment in described second cluster tool, obtain the second number of devices;
Default test script number;Described test script number is within the second number of devices;
From described 3rd test script set, random acquisition threeth test script corresponding with test script number, obtains 4th test script set;
The second equipment in described second cluster tool is pressed described test script number packet, obtains the second equipment group;
Test script in described 4th test script set is sent the second equipment to the second equipment group successively.
Seen from the above description, can achieve that the client of the interactive software to be measured being deployed in distinct device executes simultaneously many Kind of test script, thus when can test multiple client and making multiple reaction simultaneously, if abnormal conditions occur.
Further, also include:
Obtain the test data that test script returns;
Analyze described test data and form test report.
Seen from the above description, engineer can be facilitated according to test report automatically according to Test data generation test report Tested software is repaired accordingly with perfect, to guarantee that interactive software product normally can run on equipment.
As shown in Fig. 2 the present invention also provides a kind of test system of interactive software oncurrent processing ability, comprising:
First presetting module 1, for presetting interactive software to be measured;Described interactive software includes client and server End;
First acquisition module 2, for obtaining the first equipment of the server end disposing described interactive software to be measured;Obtain Dispose the second equipment of the client of described interactive software to be measured, obtain the second cluster tool;
Second presetting module 3, for default first test foot corresponding with the server end of described interactive software to be measured This, form the first test script set;Preset second test script corresponding with the client of described interactive software to be measured, shape Become the second test script set;
Second acquisition module 4, for obtaining one first test script from described first test script set, and will be described One first test script sends to described first equipment;Obtain from described second test script set and described one first test Corresponding second test script of script, and described second test script is sent to described second cluster tool second set Standby;
3rd presetting module 5, for presetting waiting time;
3rd acquisition module 6, for obtaining present system time, obtains client and starts the testing time;
Performing module 7, parses and executes described one first test script for described first equipment;Described second equipment collection The second equipment in conjunction parses and executes described second test script;
4th acquisition module 8, for obtaining present system time, present system time is deducted described client and starts to survey The examination time, obtain client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to institute The server end stating interactive software to be measured submits the operation of data to, continues waiting for;Otherwise: execute soft to described interactive mode to be measured The server end of part submits the operation of data to.
Embodiments of the invention one are:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, random from described first test script set obtain one first test script, and will described one first survey Training originally sends to described first equipment;Obtain second test script corresponding with described one first test script, obtain the Three test script set;Random acquisition one the 3rd test script from described 3rd test script set;Send described one the 3rd Second equipment to described second cluster tool for the test script;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to;
The test data that step 9, acquisition test script return;Analyze described test data and form test report.
Seen from the above description, the present embodiment realizes random test one user's scene, the visitor of all interactive software to be measured Family end executes same operation, and the client of all interactive software to be measured submits data in synchronization to server end, and Generate test report.
The application scenarios of the present embodiment are: in modern teaching, electronic instruction is very universal.If a wisdom classroom is by one Individual teacher side and 60 student side compositions.Teacher side can send different types of exercise question to student side simultaneously, and student side is made After answer, submit data to teacher side.If user's scene of the teacher side that system randomly chooses is, teacher side sends to student side One single choice, the test script of the student side that system randomly chooses is the test script that execution selects option a.During default wait A length of 10 seconds, then, when the time of actual execution test script being 10 seconds, all student side are submitted to teacher side simultaneously and are selected knot Really.And obtain corresponding test data, form test report, facilitate engineer according to test report, tested software to be carried out accordingly Repairing with perfect, to guarantee that interactive software product normally can run on equipment.
Embodiments of the invention two are:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, random from described first test script set obtain one first test script, and will described one first survey Training originally sends to described first equipment;Obtain the quantity of the second equipment in described second cluster tool, obtain the second equipment Number;Default test script number;Described test script number is within the second number of devices;Random from described 3rd test script set Obtain threeth test script corresponding with test script number, obtain the 4th test script set;By described second cluster tool In the second equipment press the packet of described test script number, obtain the second equipment group;By the survey in described 4th test script set Training originally sends the second equipment to the second equipment group successively;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to;
The test data that step 9, acquisition test script return;Analyze described test data and form test report.
Seen from the above description, the present embodiment realizes random test one user's scene, the interactive software to be measured of different groups Client executing different operating, and the client of all interactive software to be measured synchronization to server end submit to number According to, and generate test report.
The application scenarios of the present embodiment are: in modern teaching, electronic instruction is very universal.If a wisdom classroom is by one Individual teacher side and 60 student side compositions.Teacher side can send different types of exercise question to student side simultaneously, and student side is made After answer, submit data to teacher side.If user's scene of the teacher side that system randomly chooses is, teacher side sends to student side One single choice, then now the selectable test script of student side is, execution selects the test script of option a, and execution selects choosing The test script of item b, execution selects the test script of option c and the test script of execution selection option d.Student side is divided into four Group, every group comprises 15 student side, and four groups of student side execute the test script selecting option a, the test selecting option b respectively Script, the test script selecting option c and the test script selecting option d, then have 15 student side execution in wisdom classroom Select the operation of option a, 15 student side execution select the operation of option b, 15 student side execution select the behaviour of option c Make, also the operation of 15 student side execution selection option d, and selection result is uploaded to teacher side.Default waiting time For 10 seconds, then, when the time of actual execution test script being 10 seconds, all student side submitted selection result to teacher side simultaneously. And obtain corresponding test data, form test report.
Embodiments of the invention three are:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, default one first test script;Described one first test script belongs to the first test script set;Send Described one first test script is to described first equipment;Obtain the second test foot corresponding with described one first test script This, obtain the 3rd test script set;Random acquisition one the 3rd test script from described 3rd test script set;Send institute State the second equipment to described second cluster tool for one the 3rd test script;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to;
The test data that step 9, acquisition test script return;Analyze described test data and form test report.
Seen from the above description, the present embodiment realizes nominative testing one user's scene, the visitor of all interactive software to be measured Family end executes same operation, and the client of all interactive software to be measured submits data in synchronization to server end, and Generate test report.
The application scenarios of the present embodiment are: in modern teaching, electronic instruction is very universal.If a wisdom classroom is by one Individual teacher side and 60 student side compositions.Teacher side can send different types of exercise question to student side simultaneously, and student side is made After answer, submit data to teacher side.The user's scene to be measured now specifying teacher side is that teacher side sends to student side to be sentenced together Disconnected topic, then now the selectable test script of student side is, execution judges this entitled correct test script and judges that this is entitled Select the test script of mistake.If the test script of the student side that system randomly chooses is execution judges this entitled correct test Script, then 60 in wisdom classroom student side execution judges this entitled correct operation, and selection result is uploaded to religion Shi Duan.Default waiting time is 10 seconds, then, when the time of actual execution test script being 10 seconds, all student side are simultaneously to religion Selection result is submitted at teacher end to, obtains corresponding test data, forms test report.
Embodiments of the invention four are:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain deployment described to be measured Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first survey This set of training;Preset second test script corresponding with the client of described interactive software to be measured, form the second test foot This set;
Step 4, default one first test script;Described one first test script belongs to the first test script set;Send Described one first test script is to described first equipment;Obtain the quantity of the second equipment in described second cluster tool, obtain Second number of devices;Default test script number;Described test script number is within the second number of devices;From described 3rd test script collection In conjunction, random acquisition threeth test script corresponding with test script number, obtains the 4th test script set;By described second The second equipment in cluster tool presses described test script number packet, obtains the second equipment group;By described 4th test script collection Test script in conjunction sends the second equipment to the second equipment group successively;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool Two equipment parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain Client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute to described interaction to be measured The server end of formula software submits the operation of data to, continues waiting for;Otherwise: execute the server to described interactive software to be measured The operation of data is submitted at end to;
The test data that step 9, acquisition test script return;Analyze described test data and form test report.
Seen from the above description, the present embodiment realizes nominative testing one user's scene, the interactive software to be measured of different groups Client executing different operating, and the client of all interactive software to be measured synchronization to server end submit to number According to, and generate test report.
The application scenarios of the present embodiment are: in modern teaching, electronic instruction is very universal.If a wisdom classroom is by one Individual teacher side and 60 student side compositions.Teacher side can send different types of exercise question to student side simultaneously, and student side is made After answer, submit data to teacher side.The user's scene to be measured now specifying teacher side is that teacher side sends to student side to be sentenced together Disconnected topic, then now the selectable test script of student side is, execution judges that this entitled correct test script and execution judge this The test script of entitled mistake.Student side is divided into two groups, every group comprises 30 student side, and two groups of student side execute respectively and sentence This entitled correct test script disconnected and the test script judging this entitled mistake, then have 30 student side to hold in wisdom classroom Row judges this entitled correct operation, and 30 student side execution judge the operation of this entitled mistake, and will determine that result uploads To teacher side.Default waiting time is 10 seconds, then, when the time of actual execution test script being 10 seconds, all student side are simultaneously Submit selection result to teacher side to.Obtain corresponding test data, form test report.
In sum, the present invention provides a kind of method of testing of interactive software oncurrent processing ability and system, pass through Preset waiting time before the corresponding test script of client executing, when the time executing test script being more than described wait When long, client executing is just allowed to submit the operation of data to server end, controllable all clients synchronization is to service Data is submitted at device end to, thus the oncurrent processing ability of interactive software can be tested;By presetting the service of interactive software to be measured Device end and the test script of client, and automatically send described test script to the server disposing interactive software to be measured End or the equipment of client, after described equipment receives test script, execute corresponding test script automatically, realize automatically testing It is deployed in the interactive software in large-scale equipment;Further, the test script of service end can be obtained at random, thus realize with Any user scene tested by machine;Further, the nominative testing script of service end can be obtained, thus realizing testing specified user field Scape;Further, can achieve the same test script of client executing of all interactive software to be measured, thus can test all of When client makes same reaction simultaneously, if abnormal conditions occur;Further, can achieve and be deployed in treating of distinct device The client surveying interactive software executes multiple test scripts, thus multiple client can be tested make multiple reactions simultaneously simultaneously When, if abnormal conditions occur;Further, can automatically according to test result generate test report, facilitate engineer according to Test report tested software is repaired accordingly with perfect, to guarantee that interactive software product normally can transport on equipment OK.
The foregoing is only embodiments of the invention, not thereby limit the present invention the scope of the claims, every using this The equivalents that bright description and accompanying drawing content are made, or directly or indirectly it is used in the technical field of correlation, all include in the same manner In the scope of patent protection of the present invention.

Claims (10)

1. a kind of method of testing of interactive software oncurrent processing ability is it is characterised in that include:
Step 1, default interactive software to be measured;Described interactive software includes client and server end;
Step 2, acquisition dispose the first equipment of the server end of described interactive software to be measured;Obtain and dispose described interaction to be measured Second equipment of the client of formula software, obtains the second cluster tool;
Step 3, default first test script corresponding with the server end of described interactive software to be measured, form the first test foot This set;Preset second test script corresponding with the client of described interactive software to be measured, form the second test script collection Close;
Step 4, from described first test script set, obtain one first test script, and described one first test script is sent out Deliver to described first equipment;Second survey corresponding with described one first test script is obtained from described second test script set Training originally, and described second test script is sent the second equipment to described second cluster tool;
Step 5, default waiting time;
Step 6, acquisition present system time, obtain client and start the testing time;
Step 7, described first equipment parse and execute described one first test script;In described second cluster tool second sets Standby parse and execute described second test script;
Step 8, acquisition present system time, present system time are deducted described client and start the testing time, obtain client End length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute soft to described interactive mode to be measured The server end of part submits the operation of data to, continues waiting for;Otherwise: execute and carry to the server end of described interactive software to be measured The operation of intersection number evidence.
2. a kind of method of testing of interactive software oncurrent processing ability according to claim 1 is it is characterised in that from institute State in the first test script set acquisition one first test script, and described one first test script is sent set to described first Standby, particularly as follows:
Random acquisition one first test script from described first test script set, and described one first test script is sent To described first equipment.
3. a kind of method of testing of interactive software oncurrent processing ability according to claim 1 is it is characterised in that from institute State in the first test script set acquisition one first test script, and described one first test script is sent set to described first Standby, particularly as follows:
Default one first test script;Described one first test script belongs to the first test script set;
Send described one first test script to described first equipment.
4. a kind of method of testing of interactive software oncurrent processing ability according to claim 1 is it is characterised in that from institute State acquisition second test script corresponding with described one first test script in the second test script set, and described second is surveyed Training originally sends the second equipment to described second cluster tool, particularly as follows:
Obtain second test script corresponding with described one first test script, obtain the 3rd test script set;
Random acquisition one the 3rd test script from described 3rd test script set;
Send the second equipment to described second cluster tool for described one the 3rd test script.
5. a kind of method of testing of interactive software oncurrent processing ability according to claim 1 is it is characterised in that from institute State acquisition second test script corresponding with described one first test script in the second test script set, and described second is surveyed Training originally sends the second equipment to described second cluster tool, particularly as follows:
Obtain second test script corresponding with described one first test script, obtain the 3rd test script set;
Obtain the quantity of the second equipment in described second cluster tool, obtain the second number of devices;
Default test script number;Described test script number is within the second number of devices;
From described 3rd test script set, random acquisition threeth test script corresponding with test script number, obtains the 4th Test script set;
The second equipment in described second cluster tool is pressed described test script number packet, obtains the second equipment group;
Test script in described 4th test script set is sent the second equipment to the second equipment group successively.
6. a kind of method of testing of interactive software oncurrent processing ability according to claim 1 is it is characterised in that also wrap Include:
Obtain the test data that test script returns;
Analyze described test data and form test report.
7. a kind of test system of interactive software oncurrent processing ability is it is characterised in that include:
First presetting module, for presetting interactive software to be measured;Described interactive software includes client and server end;
First acquisition module, for obtaining the first equipment of the server end disposing described interactive software to be measured;Obtain deployment Second equipment of the client of described interactive software to be measured, obtains the second cluster tool;
Second presetting module, for presetting first test script corresponding with the server end of described interactive software to be measured, shape Become the first test script set;Preset second test script corresponding with the client of described interactive software to be measured, formation the Two test script set;
Second acquisition module, for obtaining one first test script, and by described 1 the from described first test script set One test script sends to described first equipment;Obtain and described one first test script from described second test script set Corresponding second test script, and described second test script is sent the second equipment to described second cluster tool;
3rd presetting module, for presetting waiting time;
3rd acquisition module, for obtaining present system time, obtains client and starts the testing time;
Performing module, parses and executes described one first test script for described first equipment;In described second cluster tool The second equipment parse and execute described second test script;
4th acquisition module, for obtaining present system time, by present system time deduct described client start test when Between, obtain client length of testing speech;If described client length of testing speech is less than described waiting time, wouldn't execute and treat to described The server end surveying interactive software submits the operation of data to, continues waiting for;Otherwise: execute to described interactive software to be measured Server end submits the operation of data to.
8. a kind of test system of interactive software oncurrent processing ability according to claim 7 is it is characterised in that described Second acquisition module includes:
First acquisition unit, obtains one first test script for random from described first test script set, and will be described One first test script sends to described first equipment;
First default unit, for presetting one first test script;Described one first test script belongs to the first test script collection Close;
First transmitting element, for sending described one first test script to described first equipment.
9. a kind of test system of interactive software oncurrent processing ability according to claim 7 is it is characterised in that described Second acquisition module also includes:
Second acquisition unit, for obtaining second test script corresponding with described one first test script, obtains the 3rd survey This set of training;
3rd acquiring unit, obtains one the 3rd test script for random from described 3rd test script set;
Second transmitting element, for sending the second equipment to described second cluster tool for described one the 3rd test script;
4th acquiring unit, for obtaining the quantity of the second equipment in described second cluster tool, obtains the second number of devices;
Second default unit, for presetting test script number;Described test script number is within the second number of devices;
5th acquiring unit, obtains threeth corresponding with test script number for random from described 3rd test script set Test script, obtains the 4th test script set;
Grouped element, for the second equipment in described second cluster tool is pressed described test script number packet, obtains second Equipment group;
3rd transmitting element, for sending the test script in described 4th test script set successively to the second equipment group The second equipment.
10. a kind of test system of interactive software oncurrent processing ability according to claim 7 is it is characterised in that go back Including:
3rd acquisition module, for obtaining the test data of test script return;
Analysis module, forms test report for analyzing described test data.
CN201610770899.4A 2016-08-30 2016-08-30 A kind of test method and system of interactive software oncurrent processing ability Active CN106371990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610770899.4A CN106371990B (en) 2016-08-30 2016-08-30 A kind of test method and system of interactive software oncurrent processing ability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610770899.4A CN106371990B (en) 2016-08-30 2016-08-30 A kind of test method and system of interactive software oncurrent processing ability

Publications (2)

Publication Number Publication Date
CN106371990A true CN106371990A (en) 2017-02-01
CN106371990B CN106371990B (en) 2018-11-23

Family

ID=57901741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610770899.4A Active CN106371990B (en) 2016-08-30 2016-08-30 A kind of test method and system of interactive software oncurrent processing ability

Country Status (1)

Country Link
CN (1) CN106371990B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763087A (en) * 2018-05-31 2018-11-06 惠州市德赛西威汽车电子股份有限公司 A kind of script testing method, apparatus and system
CN111352853A (en) * 2020-05-25 2020-06-30 南京领行科技股份有限公司 Compatibility testing method, device, server and storage medium
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002149444A (en) * 2000-11-13 2002-05-24 Mitsubishi Electric Corp Software testing system and software testing method, and computer-readable program recording medium with program for realizing the same method by computer recorded thereon, and program for realizing the same method by computer
KR20120048350A (en) * 2010-11-05 2012-05-15 재단법인대구경북과학기술원 Automatic test system for micro controller unit and method thereof
CN102868573A (en) * 2012-09-12 2013-01-09 北京航空航天大学 Method and device for Web service load cloud test
CN102866944A (en) * 2012-06-12 2013-01-09 中国联合网络通信集团有限公司 Pressure testing system and method
US20140095931A1 (en) * 2012-09-28 2014-04-03 Sivasakthivel Sadasivam Method and system for automating the process of testing a device
CN104123397A (en) * 2014-08-15 2014-10-29 携程计算机技术(上海)有限公司 Automatic test device and method for Web page
CN105207854A (en) * 2015-10-13 2015-12-30 上海斐讯数据通信技术有限公司 Multi-terminal concurrent testing system and method
CN105224450A (en) * 2014-07-02 2016-01-06 阿里巴巴集团控股有限公司 Concurrent testing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002149444A (en) * 2000-11-13 2002-05-24 Mitsubishi Electric Corp Software testing system and software testing method, and computer-readable program recording medium with program for realizing the same method by computer recorded thereon, and program for realizing the same method by computer
KR20120048350A (en) * 2010-11-05 2012-05-15 재단법인대구경북과학기술원 Automatic test system for micro controller unit and method thereof
CN102866944A (en) * 2012-06-12 2013-01-09 中国联合网络通信集团有限公司 Pressure testing system and method
CN102868573A (en) * 2012-09-12 2013-01-09 北京航空航天大学 Method and device for Web service load cloud test
US20140095931A1 (en) * 2012-09-28 2014-04-03 Sivasakthivel Sadasivam Method and system for automating the process of testing a device
CN105224450A (en) * 2014-07-02 2016-01-06 阿里巴巴集团控股有限公司 Concurrent testing method and device
CN104123397A (en) * 2014-08-15 2014-10-29 携程计算机技术(上海)有限公司 Automatic test device and method for Web page
CN105207854A (en) * 2015-10-13 2015-12-30 上海斐讯数据通信技术有限公司 Multi-terminal concurrent testing system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763087A (en) * 2018-05-31 2018-11-06 惠州市德赛西威汽车电子股份有限公司 A kind of script testing method, apparatus and system
CN111352853A (en) * 2020-05-25 2020-06-30 南京领行科技股份有限公司 Compatibility testing method, device, server and storage medium
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method

Also Published As

Publication number Publication date
CN106371990B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN104636254B (en) Generate method and apparatus, method of testing and the equipment of test case
CN106776280B (en) Configurable performance testing device
CN108763009B (en) Server stress test method, system, equipment and computer readable storage medium
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
CN106371990A (en) Testing method and testing system of concurrent processing capability of interactive software
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN112187585A (en) Network protocol testing method and device
WO2007121001A3 (en) Method and apparatus for interactive generation of device response template and analysis
CN109446075A (en) Interface testing method and device
CN108347356A (en) A kind of multi-protocols unit test method, device, electronic equipment and storage medium
CN105630665B (en) A kind of application program adjustment method based on android system and terminal device
CN106658545A (en) Test method, mobile terminal and server
CN106354643B (en) A kind of the accidental error test method and system of interactive software
CN108153667B (en) Automatic test method, device and system
CN114039899B (en) Method for realizing network performance test of WEB product based on Fiddler tool
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN106445810A (en) Interactive software and device compatibility test method and system
CN106339319A (en) Method and system for testing interactive software
CN110399723A (en) Leak detection method and device, storage medium and electronic device
CN110334014A (en) For user interface automated testing method, system, server and storage medium
CN105282541B (en) A kind of test device and method of testing applied to video on-demand system
CN113282511B (en) Test method and test equipment
TWI266070B (en) Chip-level design under test verification environment and method thereof
CN106131151A (en) For testing the method and device of supplying system
CN114238091A (en) Resident interactive service cluster testing method and system

Legal Events

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