CN106371990B - A kind of test method and system of interactive software oncurrent processing ability - Google Patents

A kind of test method and system of interactive software oncurrent processing ability Download PDF

Info

Publication number
CN106371990B
CN106371990B CN201610770899.4A CN201610770899A CN106371990B CN 106371990 B CN106371990 B CN 106371990B CN 201610770899 A CN201610770899 A CN 201610770899A CN 106371990 B CN106371990 B CN 106371990B
Authority
CN
China
Prior art keywords
test script
test
equipment
software
obtains
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.)
Active
Application number
CN201610770899.4A
Other languages
Chinese (zh)
Other versions
CN106371990A (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

Abstract

The present invention relates to testing field more particularly to a kind of test methods and system of interactive software oncurrent processing ability.The present invention is by presetting the server end of interactive software to be measured and the test script of client, and the test script is sent to automatically and has disposed the server end of interactive software to be measured or the equipment of client, after the equipment receives test script, automatically corresponding test script is executed, the interactive software being deployed in large-scale equipment is tested in realization automatically;By presetting waiting time, all clients synchronization can control to submit data to server end, so as to test the oncurrent processing ability of interactive software.

Description

A kind of test method and system of interactive software oncurrent processing ability
Technical field
The present invention relates to the test method of testing field more particularly to a kind of interactive software oncurrent processing ability and it is System.
Background technique
Interactive software generally includes client and server end, exists usually between client and server end a large amount of Interactive operation, therefore, be inevitably present to a high-profile use, high concurrent the case where, that is to say, that certain time period even certain One moment, while thering are a large amount of clients to submit or request data, this server for interactive software The case where being biggish test, being easy to appear server crash, seriously affect user experience.Therefore, it before online, needs pair The test of interactive software progress oncurrent processing ability.
The prior art mostly tests the oncurrent processing ability of software in virtual machine, although capableing of simulation softward Run mode improves the accuracy of test result, but virtual machine and real equipment have differences always, can not be completely truly anti- Mirror the case where software is run in real equipment.
Summary of the invention
The technical problem to be solved by the present invention is to:There is provided a kind of interactive software oncurrent processing ability test method and System realizes that automatically testing is deployed in the oncurrent processing ability of the interactive software in large-scale equipment.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
The present invention provides a kind of test method of interactive software oncurrent processing ability, including:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4 obtains one first test script from the first test script set, and tests foot for described one first Originally it is sent to first equipment;Corresponding with one first test script the is obtained from the second test script set Two test scripts, and second test script is sent to the second equipment in second cluster tool;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end.
The present invention also provides a kind of test macros of interactive software oncurrent processing ability, including:
First presetting module, for presetting interactive software to be measured;The interactive software includes client and server End;
First obtains module, for obtaining the first equipment for disposing the server end of the interactive software to be measured;It obtains The second equipment for disposing the client of the interactive software to be measured, obtains the second cluster tool;
Second presetting module, for default first test foot corresponding with the server end of the interactive software to be measured This, forms the first test script set;Preset second test script corresponding with the client of the interactive software to be measured, shape At the second test script set;
Second obtains module, for obtaining one first test script from the first test script set, and will be described One first test script is sent to first equipment;It is obtained from the second test script set and one first test Corresponding second test script of script, and second that second test script is sent in second cluster tool sets It is standby;
Third presetting module, for presetting waiting time;
Third obtains module and obtains client for obtaining present system time and start the testing time;
Execution module parses for first equipment and executes one first test script;The second equipment collection The second equipment in conjunction parses and executes second test script;
Present system time is subtracted the client and starts to survey by the 4th acquisition module for obtaining present system time The time is tried, client length of testing speech is obtained;If the client length of testing speech is less than the waiting time, wouldn't execute to institute The server end for stating interactive software to be measured submits the operation of data, continues waiting for;Otherwise:It executes soft to the interactive mode to be measured The server end of part submits the operation of data.
The beneficial effects of the present invention are:By presetting waiting time before the corresponding test script of client executing, When the time for executing test script being greater than the waiting time, client executing is just allowed to submit the behaviour of data to server end Make, can control all clients synchronization to submit data to server end, so as to test the concurrent processing of interactive software Ability;By presetting the server end of interactive software to be measured and the test script of client, and automatically by the test script The equipment for being sent to the server end or client of having disposed interactive software to be measured, after the equipment receives test script, Automatically corresponding test script is executed, the interactive software being deployed in large-scale equipment is tested in realization automatically.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the test method of interactive software oncurrent processing ability of the present invention;
Fig. 2 is a kind of structural block diagram of the test macro of interactive software oncurrent processing ability of the present invention;
Label declaration:
1, the first presetting module;2, first module is obtained;3, the second presetting module;4, second module is obtained;5, third is pre- If module;6, third obtains module;7, execution module;8, the 4th module is obtained.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained.
The design of most critical of the present invention is:By presetting waiting time before the corresponding test script of client executing, When the time for executing test script being not less than the waiting time, just client executing is allowed to submit data to server end Operation can control all clients synchronization to submit data to server end, so as to test the concurrently place of interactive software Reason ability.
As shown in Figure 1, the present invention provides a kind of test method of interactive software oncurrent processing ability, including:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4 obtains one first test script from the first test script set, and tests foot for described one first Originally it is sent to first equipment;Corresponding with one first test script the is obtained from the second test script set Two test scripts, and second test script is sent to the second equipment in second cluster tool;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end.
Wherein, there are interactive operations between the server end and client of the interactive software to be measured, hand over to test The oncurrent processing ability of mutual formula software, all second equipment in second cluster tool have been carried out in test script at this After the operation that ground executes, then it is performed simultaneously the operation that data are submitted to server end.The interactive mode to be measured is disposed in the acquisition First equipment of the server end of software;The second equipment for disposing the client of the interactive software to be measured is obtained, obtains the Two cluster tools, including obtain the unique identification identifier of relevant device, IP address, device name, system version number, memory, The facility informations such as CPU, resolution ratio, producer.In order to test the server end of interactive software to be measured, corresponding test foot should be preset This, since the 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 for the default test with the different user scene in server end of client The corresponding test script of script, the operation simulated in the test script at client and server end are interactive operation.It is deployed with Resolver is installed, the resolver can be used for receiving and holding in the equipment at the client and server end of interactive software to be measured Row test script.
Further, one first test script is obtained from the first test script set, and described one first is surveyed Training is originally sent to first equipment, specially:
Obtain one first test script at random from the first test script set, and by one first test script It is sent to first equipment.
Seen from the above description, the test script of server-side can be obtained at random, to realize random test any user field Scape.
Further, one first test script is obtained from the first test script set, and described one first is surveyed Training is originally sent to first equipment, specially:
Default one first test script;One first test script belongs to the first test script set;
One first test script is sent to first equipment.
Seen from the above description, the nominative testing script of server-side can be obtained, to realize test designated user's scene.
Further, corresponding with one first test script second is obtained from the second test script set to survey Training sheet, and second test script is sent to the second equipment in second cluster tool, specially:
The second test script corresponding with one first test script is obtained, third test script set is obtained;
Obtain a third test script at random from the third test script set;
Send second equipment of the third test script into second cluster tool.
Seen from the above description, it can be achieved that the same test script of client executing of all interactive softwares to be measured, thus When can test all clients while make same reaction, if will appear abnormal conditions.
Further, corresponding with one first test script second is obtained from the second test script set to survey Training sheet, and second test script is sent to the second equipment in second cluster tool, specially:
The second test script corresponding with one first test script is obtained, third test script set is obtained;
The quantity for obtaining the second equipment in second cluster tool, obtains the second number of devices;
Default test script number;The test script number is within the second number of devices;
It obtains third test script corresponding with test script number at random from the third test script set, obtains 4th test script set;
The second equipment in second cluster tool is grouped by the test script number, obtains the second equipment group;
Test script in the 4th test script set is successively sent to the second equipment in the second equipment group.
Seen from the above description, it can be achieved that the client for being deployed in the interactive software to be measured of distinct device be performed simultaneously it is more Kind test script, when so as to test multiple client while making a variety of reactions, if will appear abnormal conditions.
Further, further include:
Obtain the test data that test script returns;
It analyzes the test data and forms test report.
Seen from the above description, engineer can be facilitated according to test report automatically according to Test data generation test report To tested software carry out corresponding repairing with it is perfect, to ensure that interactive software product can operate normally in equipment.
As shown in Fig. 2, the present invention also provides a kind of test macros of interactive software oncurrent processing ability, including:
First presetting module 1, for presetting interactive software to be measured;The interactive software includes client and server End;
First obtains module 2, for obtaining the first equipment for disposing the server end of the interactive software to be measured;It obtains The second equipment for disposing the client of the interactive software to be measured, obtains the second cluster tool;
Second presetting module 3, for default first test foot corresponding with the server end of the interactive software to be measured This, forms the first test script set;Preset second test script corresponding with the client of the interactive software to be measured, shape At the second test script set;
Second obtains module 4, for obtaining one first test script from the first test script set, and will be described One first test script is sent to first equipment;It is obtained from the second test script set and one first test Corresponding second test script of script, and second that second test script is sent in second cluster tool sets It is standby;
Third presetting module 5, for presetting waiting time;
Third obtains module 6 and obtains client for obtaining present system time and start the testing time;
Execution module 7 parses for first equipment and executes one first test script;The second equipment collection The second equipment in conjunction parses and executes second test script;
Present system time is subtracted the client and starts to survey by the 4th acquisition module 8 for obtaining present system time The time is tried, client length of testing speech is obtained;If the client length of testing speech is less than the waiting time, wouldn't execute to institute The server end for stating interactive software to be measured submits the operation of data, continues waiting for;Otherwise:It executes soft to the interactive mode to be measured The server end of part submits the operation of data.
The embodiment of the present invention one is:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4 obtains one first test script at random from the first test script set, and described one first is surveyed Training is originally sent to first equipment;Corresponding with one first test script the second test script is obtained, obtains the Three test script set;Obtain a third test script at random from the third test script set;Send a third Second equipment of the test script into second cluster tool;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end;
Step 9 obtains the test data that test script returns;It analyzes the test data and forms test report.
Seen from the above description, the present embodiment realizes one user's scene of random test, the visitor of all interactive softwares to be measured Family end executes same operation, and the client of all interactive softwares to be measured submits data to server end in synchronization, 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 A teacher side and 60 student side compositions.Teacher side can send different types of topic simultaneously to student side, and student side is made After answer, submit data to teacher side.If user's scene of the randomly selected teacher side of system is, teacher side is sent to student side One of single choice, the test script of the randomly selected student side of system are the test script for executing selection option A.When default waiting A length of 10 seconds, then when the time for actually executing test script is 10 seconds, all student sides submit selection knot to teacher side simultaneously Fruit.And corresponding test data is obtained, test report is formed, facilitates engineer to be carried out according to test report to tested software corresponding Repairing with it is perfect, to ensure that interactive software product can operate normally in equipment.
The embodiment of the present invention two is:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4 obtains one first test script at random from the first test script set, and described one first is surveyed Training is originally sent to first equipment;The quantity for obtaining the second equipment in second cluster tool, obtains the second equipment Number;Default test script number;The test script number is within the second number of devices;It is random from the third test script set Third test script corresponding with test script number is obtained, the 4th test script set is obtained;By second cluster tool In the second equipment by the test script number be grouped, obtain the second equipment group;By the survey in the 4th test script set Training is originally successively sent to the second equipment in the second equipment group;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end;
Step 9 obtains the test data that test script returns;It analyzes the test data and forms test report.
Seen from the above description, the present embodiment realizes one user's scene of random test, the interactive software to be measured of difference group Client executing different operation, and the client of all interactive softwares to be measured synchronization to server end submit 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 A teacher side and 60 student side compositions.Teacher side can send different types of topic simultaneously to student side, and student side is made After answer, submit data to teacher side.If user's scene of the randomly selected teacher side of system is, teacher side is sent to student side One of single choice, then the selectable test script of student side is at this time, executes the test script of selection option A, executes selection choosing The test script of item B executes the test script of selection option C and executes the test script for selecting option D.Student side is divided into four Group, every group includes 15 student sides, and four groups of student sides execute the test script of selection option A respectively, select the test of option B Script, the test script for selecting option C and the test script for selecting option D, then have 15 student sides to execute in wisdom classroom The operation of option A is selected, 15 student sides execute the operation of selection option B, and 15 student sides execute the behaviour of selection option C Make, there are also the operations that 15 student sides execute selection option D, and selection result is uploaded to teacher side.Default waiting time It is 10 seconds, then when the time for actually executing test script is 10 seconds, all student sides submit selection result to teacher side simultaneously. And corresponding test data is obtained, form test report.
The embodiment of the present invention three is:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4, default one first test script;One first test script belongs to the first test script set;It sends One first test script is to first equipment;Obtain the second test foot corresponding with one first test script This, obtains third test script set;Obtain a third test script at random from the third test script set;Send institute State second equipment of the third test script into second cluster tool;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end;
Step 9 obtains the test data that test script returns;It analyzes the test data and forms test report.
Seen from the above description, the present embodiment realizes one user's scene of nominative testing, the visitor of all interactive softwares to be measured Family end executes same operation, and the client of all interactive softwares to be measured submits data to server end in synchronization, 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 A teacher side and 60 student side compositions.Teacher side can send different types of topic simultaneously to student side, and student side is made After answer, submit data to teacher side.The user's scene to be measured for now specifying teacher side is that teacher side is sentenced together to student side transmission Disconnected topic, then the selectable test script of student side is at this time, and execution judges this subject for correct test script and judges that this is entitled Select the test script of mistake.If the test script of the randomly selected student side of system is to execute to judge that this subject is correctly to test Script, then student side execution in 60 in wisdom classroom judges that this subject operates to be correct, and selection result is uploaded to religion Shi Duan.Default waiting time is 10 seconds, then when the time for actually executing test script is 10 seconds, all student sides are simultaneously to religion Selection result is submitted at teacher end, obtains corresponding test data, forms test report.
The embodiment of the present invention four is:
Step 1 presets interactive software to be measured;The interactive software includes client and server end;
Step 2 obtains the first equipment for disposing the server end of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software, obtains the second cluster tool;
Step 3 presets first test script corresponding with the server end of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client of the interactive software to be measured is preset, the second test foot is formed This set;
Step 4, default one first test script;One first test script belongs to the first test script set;It sends One first test script is to first equipment;The quantity for obtaining the second equipment in second cluster tool, obtains Second number of devices;Default test script number;The test script number is within the second number of devices;From the third test script collection Third test script corresponding with test script number is obtained in conjunction at random, obtains the 4th test script set;By described second The second equipment in cluster tool is grouped by the test script number, obtains the second equipment group;By the 4th test script collection Test script in conjunction is successively sent to the second equipment in the second equipment group;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client and starts the testing time;
Step 7, first equipment parse and execute one first test script;In second cluster tool Two equipment parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client and starts the testing time, is obtained Client length of testing speech;If the client length of testing speech is less than the waiting time, wouldn't execute to the interaction to be measured The server end of formula software submits the operation of data, continues waiting for;Otherwise:Execute the server to the interactive software to be measured Submit the operation of data in end;
Step 9 obtains the test data that test script returns;It analyzes the test data and forms test report.
Seen from the above description, the present embodiment realizes one user's scene of nominative testing, the interactive software to be measured of difference group Client executing different operation, and the client of all interactive softwares to be measured synchronization to server end submit 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 A teacher side and 60 student side compositions.Teacher side can send different types of topic simultaneously to student side, and student side is made After answer, submit data to teacher side.The user's scene to be measured for now specifying teacher side is that teacher side is sentenced together to student side transmission Disconnected to inscribe, then the selectable test script of student side is at this time, and execution judges this subject for correct test script and executes judgement originally The test script of entitled mistake.Student side is divided into two groups, every group includes 30 student sides, and two groups of student sides execute respectively to be sentenced Disconnected this subject is the test script of this entitled mistake of correct test script and judgement, then has 30 student sides to hold in wisdom classroom Row judges this subject for correctly operation, and 30 student sides execute the operation of this entitled mistake of judgement, and judging result is uploaded To teacher side.Default waiting time is 10 seconds, then when the time for actually executing test script is 10 seconds, all student sides are simultaneously Selection result is submitted to teacher side.Corresponding test data is obtained, test report is formed.
In conclusion the test method and system of a kind of interactive software oncurrent processing ability provided by the invention, pass through Waiting time is preset before the corresponding test script of client executing, when the time for executing test script being greater than the waiting When long, just allow client executing to submit the operation of data to server end, can control all clients synchronization to service Data are submitted at device end, so as to test the oncurrent processing ability of interactive software;By the service for presetting interactive software to be measured The test script at device end and client, and the test script is sent to the server for having disposed interactive software to be measured automatically The equipment of end or client after the equipment receives test script, executes corresponding test script automatically, realizes automatic test The interactive software being deployed in large-scale equipment;Further, the test script of server-side can be obtained at random, thus realize with Machine tests any user scene;Further, the nominative testing script of server-side can be obtained, to realize test designated user Scape;Further, it can be achieved that the same test script of client executing of all interactive softwares to be measured, all so as to test When client makes same reaction simultaneously, if will appear abnormal conditions;Further, it can be achieved that be deployed in distinct device to The client for surveying interactive software is performed simultaneously a variety of test scripts, so as to test multiple client while making a variety of reactions When, if it will appear abnormal conditions;Further, can automatically according to test result generate test report, facilitate engineer according to Test report to tested software carry out corresponding repairing with it is perfect, to ensure that interactive software product can normally be transported in equipment Row.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include In scope of patent protection of the invention.

Claims (10)

1. a kind of test method of interactive software oncurrent processing ability, which is characterized in that including:
Step 1 presets interactive software to be measured;The interactive software includes client software and server software;
Step 2 obtains the first equipment for disposing the server software of the interactive software to be measured;It is described to be measured to obtain deployment Second equipment of the client of interactive software constitutes the second cluster tool by the second equipment obtained;
Step 3 presets first test script corresponding with the server software of the interactive software to be measured, forms first and surveys This set of training;Second test script corresponding with the client software of the interactive software to be measured is preset, second is formed and surveys This set of training;
Step 4 obtains one first test script from the first test script set, and one first test script is sent out It send to first equipment;Corresponding with one first test script second is obtained from the second test script set to survey Training sheet, and second test script is sent to the second equipment in second cluster tool;
Step 5, default waiting time;
Step 6 obtains present system time, obtains client software and starts the testing time;
Step 7, first equipment parse and execute one first test script;Second in second cluster tool sets It is standby to parse and execute second test script;
Step 8 obtains present system time, and present system time is subtracted the client software and starts the testing time, is obtained Client software length of testing speech;If the client software length of testing speech is less than the waiting time, wouldn't execute to described The server software of interactive software to be measured submits the operation of data, continues waiting for;Otherwise:It executes to the interactive mode to be measured The server software of software submits the operation of data.
2. a kind of test method of interactive software oncurrent processing ability according to claim 1, which is characterized in that from institute One first test script of acquisition in the first test script set is stated, and one first test script is sent to described first and is set It is standby, specially:
It obtains one first test script at random from the first test script set, and one first test script is sent To first equipment.
3. a kind of test method of interactive software oncurrent processing ability according to claim 1, which is characterized in that from institute One first test script of acquisition in the first test script set is stated, and one first test script is sent to described first and is set It is standby, specially:
Default one first test script;One first test script belongs to the first test script set;
One first test script is sent to first equipment.
4. a kind of test method of interactive software oncurrent processing ability according to claim 1, which is characterized in that from institute It states and obtains the second test script corresponding with one first test script in the second test script set, and described second is surveyed Training is originally sent to the second equipment in second cluster tool, specially:
The second test script corresponding with one first test script is obtained, third test script set is obtained;
Obtain a third test script at random from the third test script set;
Send second equipment of the third test script into second cluster tool.
5. a kind of test method of interactive software oncurrent processing ability according to claim 1, which is characterized in that from institute It states and obtains the second test script corresponding with one first test script in the second test script set, and described second is surveyed Training is originally sent to the second equipment in second cluster tool, specially:
The second test script corresponding with one first test script is obtained, third test script set is obtained;
The quantity for obtaining the second equipment in second cluster tool, obtains the second number of devices;
Default test script number;The test script number is within the second number of devices;
It obtains third test script corresponding with test script number at random from the third test script set, obtains the 4th Test script set;
The second equipment in second cluster tool is grouped by the test script number, obtains the second equipment group;
Test script in the 4th test script set is successively sent to the second equipment in the second equipment group.
6. a kind of test method of interactive software oncurrent processing ability according to claim 1, which is characterized in that also wrap It includes:
Obtain the test data that test script returns;
It analyzes the test data and forms test report.
7. a kind of test macro of interactive software oncurrent processing ability, which is characterized in that including:
First presetting module, for presetting interactive software to be measured;The interactive software includes client software and server Hold software;
First obtains module, for obtaining the first equipment for disposing the server software of the interactive software to be measured;It obtains The second equipment for disposing the client software of the interactive software to be measured constitutes the second equipment collection by the second equipment obtained It closes;
Second presetting module, for default first test foot corresponding with the server software of the interactive software to be measured This, forms the first test script set;Default second test foot corresponding with the client software of the interactive software to be measured This, forms the second test script set;
Second obtains module, for obtaining one first test script from the first test script set, and by described 1 the One test script is sent to first equipment;It is obtained and one first test script from the second test script set Corresponding second test script, and second test script is sent to the second equipment in second cluster tool;
Third presetting module, for presetting waiting time;
Third obtains module and obtains client software for obtaining present system time and start the testing time;
Execution module parses for first equipment and executes one first test script;In second cluster tool The second equipment parse and execute second test script;
Present system time is subtracted the client software and starts to survey by the 4th acquisition module for obtaining present system time The time is tried, client software length of testing speech is obtained;If the client software length of testing speech is less than the waiting time, wouldn't The operation for submitting data to the server software of the interactive software to be measured is executed, is continued waiting for;Otherwise:It executes to described The server software of interactive software to be measured submits the operation of data.
8. a kind of test macro of interactive software oncurrent processing ability according to claim 7, which is characterized in that described Second, which obtains module, includes:
First acquisition unit, for obtaining one first test script at random from the first test script set, and will be described One first test script is sent to first equipment;
First default unit, for presetting one first test script;One first test script belongs to the first test script collection It closes;
First transmission unit, for sending one first test script to first equipment.
9. a kind of test macro of interactive software oncurrent processing ability according to claim 7, which is characterized in that described Second, which obtains module, further includes:
Second acquisition unit obtains third survey for obtaining the second test script corresponding with one first test script This set of training;
Third acquiring unit, for obtaining a third test script at random from the third test script set;
Second transmission unit, for sending second equipment of the third test script into second cluster tool;
4th acquiring unit obtains the second number of devices for obtaining the quantity of the second equipment in second cluster tool;
Second default unit, for presetting test script number;The test script number is within the second number of devices;
5th acquiring unit, for obtaining third corresponding with test script number at random from the third test script set Test script obtains the 4th test script set;
Grouped element obtains second for the second equipment in second cluster tool to be grouped by the test script number Equipment group;
Third transmission unit, for the test script in the 4th test script set to be successively sent in the second equipment group The second equipment.
10. a kind of test macro of interactive software oncurrent processing ability according to claim 7, which is characterized in that also Including:
Third obtains module, for obtaining the test data of test script return;
Analysis module forms test report for analyzing the 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 CN106371990A (en) 2017-02-01
CN106371990B true 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)

Families Citing this family (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
CN111352853B (en) * 2020-05-25 2020-09-18 南京领行科技股份有限公司 Compatibility testing method, device, server and storage medium
CN113138919B (en) * 2021-04-19 2022-04-22 广州掌动智能科技有限公司 Multi-client testing system and method

Citations (7)

* 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
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101185542B1 (en) * 2010-11-05 2012-09-24 재단법인대구경북과학기술원 Automatic test system for micro controller unit and method thereof

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN106371990A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN107463473B (en) Chip software and hardware simulation environment based on UVM and FPGA
Kuhn et al. An investigation of the applicability of design of experiments to software testing
CN106371990B (en) A kind of test method and system of interactive software oncurrent processing ability
US8731896B2 (en) Virtual testbed for system verification test
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN111176999B (en) Test platform construction method and test method of unmanned aerial vehicle flight control management software
WO2007121001A3 (en) Method and apparatus for interactive generation of device response template and analysis
CN106297504A (en) Engineer equipment automatically controlled simulated teaching examination training system
CN106354643B (en) A kind of the accidental error test method and system of interactive software
CN111190820A (en) Construction method and test method of configuration item test platform of display control software
WO1992014202A1 (en) Method for testing and debugging computer programs
CN106445810B (en) A kind of test method and system of interactive software and equipment compatibility
CN109493682A (en) A kind of satellite navigation ground handling operator high fidelity simulation training system
CN105320593B (en) Multichannel frame random data authentication processing method and device
CN114039899A (en) Method for realizing network performance test of WEB product based on Fiddler tool
CN106339319A (en) Method and system for testing interactive software
CN105630665A (en) Application program debugging method based on Android system, and terminal equipment
CN111290937B (en) Extensible mobile application automation test platform based on hybrid cloud
CN105868104A (en) Cross-platform graphic user interface automatic test method
Miller et al. Animation can show only the presence of errors, never their absence
TWI266070B (en) Chip-level design under test verification environment and method thereof
Vilkomir et al. Using mc/dc as a black-box testing technique
CN112199229A (en) Data processing method, device, equipment and storage medium
CN205898913U (en) Universal tool is used in electronic test equipment test
CN115328085B (en) Generalized satellite semi-physical automatic test system and test method

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