CN101459552B - Automation test method - Google Patents

Automation test method Download PDF

Info

Publication number
CN101459552B
CN101459552B CN2007103009826A CN200710300982A CN101459552B CN 101459552 B CN101459552 B CN 101459552B CN 2007103009826 A CN2007103009826 A CN 2007103009826A CN 200710300982 A CN200710300982 A CN 200710300982A CN 101459552 B CN101459552 B CN 101459552B
Authority
CN
China
Prior art keywords
node
sharing area
test
word string
file
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.)
Expired - Fee Related
Application number
CN2007103009826A
Other languages
Chinese (zh)
Other versions
CN101459552A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2007103009826A priority Critical patent/CN101459552B/en
Publication of CN101459552A publication Critical patent/CN101459552A/en
Application granted granted Critical
Publication of CN101459552B publication Critical patent/CN101459552B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an automatic testing method, which is suitable for network, wherein the network comprises nodes with the number of M, wherein M is positive integer. The method comprises firstly, deciding a specific node from the nodes with the number of M, secondly, establishing a sharing area in the specific node, leading other nodes with the number of M-1 to read the sharing area, thirdly, establishing a testing word string in the sharing area. An i node tests a procedure when the i node reads out the testing word string in the sharing area.

Description

Automated testing method
Technical field
The invention relates to a kind of method of testing, and particularly relevant for a kind of automated testing method.
Background technology
Because network system is flourish at present, the server that the website is connected in multiple computers or the website through network simultaneously will be simultaneously by the access of multiple computers institute.For instance, present many websites offer user's network disk, allow the user can have one's own hard drive space in network.The technology of this network disk needs a plurality of magnetic regions in the server for the server in the website, and the corresponding multiple computers of a plurality of magnetic region difference, can see through network again and allow multiple computers carry out access simultaneously.
In the stage of research and development of products or manufacturing, for the demand in response to above-mentioned network, the engineer must carry out the test of network pressure to computer or server at present computer and server.Yet in the method for testing of present network pressure, the parameter when the engineer must preestablish every computer in the network could begin to test.Yet this method of testing need expend a large amount of setting-up times, and, in a large amount of repeatedly setting processes, artificial operation also makes a mistake easily, and causes test result incorrect, or need repeatedly retest, could determine the correctness of test result.
Summary of the invention
The invention provides a kind of automated testing method, can automatically or set each computer, thereby avoid the mistake of manual operation to produce.
The invention provides a kind of automated testing method, be applicable to a network, this network comprises that a server and M node and described server have P magnetic region, and P and M are the positive integer more than or equal to 2.Described automated testing method comprises: at first, determine a specific node in a described M node.In described specific node, set up a sharing area, make that other M-1 node reads described sharing area in the described M node.Then, in described sharing area, set up a test word string.Afterwards, set a test number of desire test, wherein said test number is the number of the node of desire test, and is expressed as N, and wherein, N is a positive integer.When the i node in the described M node reads the test word string when described in described sharing area, described i node will carry out a test program automatically, and described test program comprises the described test number N that reads in the described sharing area; Quotient after being divided by according to the magnetic region number P of described server and described test number N determines the magnetic region number of described i node correspondence, and wherein, the quotient of P/N is expressed as C, and P is more than or equal to N; And with the C in the described server magnetic region carry to described i node; And C magnetic region testing described i node institute carry in regular turn, wherein, i is a positive integer.
The present invention is because of adopting automated testing method, make that the engineer only needs to set in wherein computer in network after, the computer of other in the network just can carry out test program automatically.Therefore, the engineer does not need each computer in the manual setting network, and engineer's testing time can reduce, and can avoid the mistake of manual operation to take place again.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Fig. 1 illustrates the flow chart of steps into the automated testing method of the embodiment of the invention.
Fig. 2 illustrates the network diagram into another embodiment of the present invention.
Fig. 3 illustrates the flow chart of steps into the automated testing method of another embodiment of the present invention.
Fig. 4 illustrates each the substep flow chart into step S320.
Fig. 5 illustrates each the substep flow chart into step S330.
Embodiment
Fig. 1 illustrates the flow chart of steps into the automated testing method of the embodiment of the invention.Present embodiment is supposed earlier that at this this automated testing method is applied to a network, and is had M node in this network for convenience of description.Please refer to Fig. 1, at first, in M node, determine a specific node (step S110).Then, in specific node, set up a sharing area (step S120), and this sharing area can be read by other M-1 node in the network.Then, in sharing area, set up a test word string (step S130).Because this sharing area can be by the node access in the network, therefore, when the i node reads this test word string in sharing area, the i node will carry out a test program (step S140) automatically, and wherein, i is a positive integer, and i≤M.In other words, each node in the network can detect the data in the sharing area separately, when reading this test word string, will carry out test program.
The foregoing description is during with software implementation, and automated testing method for example writes above-mentioned steps one test program in advance with one batch of grammer.And, allow each node in the network carry out this test program, this test program detects sharing area with Control Node, and when detecting this test word string, begins to test.In addition, above-mentioned test word string can be the literal shelves with particular file name, and in other words, whether above-mentioned each node detection sharing area has the literal shelves of this particular file name.
By the foregoing description as can be known, when the engineer tests, the test word string will be write after the sharing area as can be known, the multiple computers in the network will be tested automatically, manually not set each computer voluntarily the needs engineer.In order to make this area tool know that usually the knowledgeable can see through present embodiment and implement the present invention, another embodiment of the present invention is proposed below.
Present embodiment for convenience of description below is made several hypothesis in advance.At first, suppose that the automated testing method of present embodiment is applied to a network, and this method of testing is in order to test network pressure.Then, suppose that this network has a M node and a server, as shown in Figure 2.Among Fig. 2, the network interface 210 in the network 200 is connected to a server 220 and M node 230_1~230_M.At last, present embodiment supposes to have P magnetic region R_1~R_P in this server 220.
Fig. 3 illustrates the flow chart of steps into the automated testing method of another embodiment of the present invention.Please also refer to Fig. 2 and Fig. 3, begin to carry out automatic test (step S305).At first, in M node 230_1~230_M, determine a specific node (step S310),, suppose the selected point of particular sections for this reason of node 230_3 at this.Next, set up a sharing area (step S315) in specific node 230_3, the data in the sharing area among the specific node 230_3 can see through network and be read by other node 230_1~230_M.In the present embodiment, this sharing area can be a magnetic region that node 230_1~230_M is public, for instance, each node 230_1~230_M all has an x magnetic region, that is to say that each node 230_1~230_M all can find one and be denoted as the magnetic region of " x: " under operating system.
Then, specific node 230_3 sets up a test word string (step S320) in sharing area.In the present embodiment, the test word string can be for having the startup file of filename of test word string, and this startup file for example is literal shelves.And step S320 includes a plurality of substeps, as shown in Figure 4.Please refer to Fig. 4, at first, specific node 230_3 judges the startup file (step S410) that whether has the filename with test word string in the sharing area.And the filename of this startup file can for example be " stress-test-start.txt ".Then, when having stored the startup file of file " stress-test-start.txt " by name in the sharing area, specific node 230_3 deletion " stress-test-start.txt " file (step S420), and the startup file that writes a file " stress-test-start.txt " by name again is to sharing area (step S430).When not having the startup file of file " stress-test-start.txt " by name in the sharing area, specific node 230_3 directly writes to sharing area (step S430) with the startup file of file " stress-test-start.txt " by name.
Please turn one's head with reference to figure 2 and Fig. 3, building stress-test-start.txt " the startup file of filename to sharing area; specific node 230_3 sets a test number (step S330) in sharing area; wherein this test number is the interstitial content of desire test, below this test numerical statement be shown N.In the present embodiment, the test number for example is to represent with the filename of a Parameter File, and this Parameter File is literal shelves.For instance, if interstitial content M is 256 in the network, the test number N is 128, and the filename of this Parameter File can for example be " 128.txt ".Above-mentioned steps S330 for example comprises a plurality of substeps again, as shown in Figure 5.Please refer to Fig. 5, at first, judge whether sharing area stores the Parameter File of the filename of " 128.txt " (step S510).If sharing area stores the Parameter File of the filename of " 128.txt ", then specific node 230_3 deletes the Parameter File (step S520) of the filename of " 128.txt ", and rebulids " 128.txt " (step S530) in sharing area.If sharing area does not store the Parameter File of the filename of " 128.txt ", then specific node 230_3 will directly set up " 128.txt " (step S530) in sharing area.
Please turn one's head with reference to figure 2 and Fig. 3, after foundation has the test number, stored a Parameter File " 128.txt " in this sharing area, then, node 230_1~230_M in the network 200 will detect respectively whether test word string (step S340) is arranged in the sharing area, with the above-mentioned example that is assumed to be, node 230_1~230_M detects the startup file whether " stress-test-start.txt " is arranged in the sharing area.In the present embodiment, though whether the step of test word string is arranged in each node detection sharing area is just to carry out after sharing area is finished setting, but, this area tool knows that usually the knowledgeable should know that node 230_1~230_M constantly detects the test word string, and when detecting the test word string, carry out test program.
Below because the steps flow chart of each node 230_1~230_M is all identical, so following examples will be example with the i node.When the i node read the test word string in sharing area, the i node read the filename of the Parameter File " 128.txt " in the sharing area, to learn test number N=128 (step S350)
According to the magnetic region number P and the quotient P/N that tests after number N is divided by of server, determine the magnetic region number (step S360) of i node correspondence.At this, suppose magnetic region number P=256 of server, the magnetic region number P/N of test number N=128, the i node correspondences is expressed as C, and C=2.Then, 2 magnetic region carry to the i nodes (step S370) in the server that is to say, two magnetic regions in the server are offered the i node as network disk.Then, the i node is tested 2 magnetic regions (step S380) of i node institute carry in regular turn.Wherein, the mode of i node test magnetic region can be to utilize a testing software, makes 2 magnetic regions of the continuous access of i node institute carry.
At last, when the i node was finished 2 magnetic regions of test institute carry, whether the i node detects again test word string (step S390) in the sharing area, when also having the test word string in detecting sharing area, to get back to step S380, test 2 magnetic regions of institute's carry once more.Test is not arranged during word string in the sharing area when the i node detects, will finish this automatic test (step S395).In other words, after the test word string of sharing area is removed, the node 230_1~230_M node in the network will finish automatic test voluntarily.
In the present embodiment, because stored test word string in the sharing area this moment, therefore, node 230_1~230_M all carries out step S350~390, and respectively access is carried out in the magnetic region of institute's carry, with test network pressure.In addition, when the i node in step S40, the i node does not detect has test during word string in the sharing area, will finish this method of testing (step S395).
In the above-described embodiments, though suppose the value of P and N respectively,, this area tool should be known in that satisfying P just can be applied to the present invention more than or equal to N as long as knowing the knowledgeable usually.In addition, above-mentioned node 230_1~230_M can be computer, personal digital assistant (Personal Digital Assistant, PDA) or the electronic installation of other kinds.
In sum, the present invention sets up the tested word string in a sharing area after, allow each node in the network can carry out test program automatically, finish the test of automation, after making that the engineer only needs to set in wherein computer in network, the computer of other in the network just can carry out test program automatically.Therefore, the engineer does not need each computer in the manual setting network, and engineer's testing time can reduce, and can avoid the mistake of manual operation to take place again.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.

Claims (9)

1. an automated testing method is applicable to a network, and described network comprises a server and M node, and described server has P magnetic region, and P and M are the positive integer more than or equal to 2, and described automated testing method comprises:
In a described M node, determine a specific node;
In described specific node, set up a sharing area, make that other M-1 node reads described sharing area in the described M node;
In described sharing area, set up a test word string;
Set a test number of desire test, wherein said test number is the number of the node of desire test, and is expressed as N, and wherein, N is a positive integer;
When the i node in the described M node reads described test word string in described sharing area, described i node will carry out a test program, and described test program comprises the described test number N that reads in the described sharing area; Quotient after being divided by according to the magnetic region number P of described server and described test number N determines the magnetic region number of described i node correspondence, and wherein, the quotient of P/N is expressed as C, and P is more than or equal to N; And with the C in the described server magnetic region carry to described i node; And C magnetic region testing described i node institute carry in regular turn, wherein i is a positive integer.
2. automated testing method as claimed in claim 1 is characterized in that, the step of setting the described test number of desire test comprises:
Judge whether described sharing area has stored a Parameter File, and the filename of described Parameter File has described test number;
If described sharing area has stored described Parameter File, then delete the Parameter File in this Geju City, and rebulid Parameter File, and the filename of new Parameter File has the test number of newly establishing in described sharing area; And
If described sharing area does not store described Parameter File, then set up Parameter File, and the filename of the Parameter File of being set up has the test number of newly establishing in described sharing area.
3. automated testing method as claimed in claim 2 is characterized in that, described Parameter File is literal shelves.
4. automated testing method as claimed in claim 1 is characterized in that, also comprises described i node reads described test word string in described sharing area before:
Each of described M node in the described network detects described sharing area respectively and whether has described test word string.
5. automated testing method as claimed in claim 4 is characterized in that, after described i node is finished described test program, also comprises:
Again detect described sharing area and whether have described test word string; And
When described sharing area has described test word string, described i node will carry out described test program again.
6. automated testing method as claimed in claim 1 is characterized in that, the step of setting up described test word string in described sharing area comprises:
Write a startup file in described sharing area, the filename of described startup file has described test word string.
7. automated testing method as claimed in claim 6 is characterized in that, the step that writes described startup file in described sharing area comprises:
Judge whether described sharing area has stored described startup file;
If described sharing area has stored described startup file, then delete the startup file in this Geju City, and rebulid startup file, and the filename of new startup file has the test word string of newly establishing in described sharing area; And
If described sharing area does not store described startup file, then set up startup file, and the filename of the startup file of being set up has the test word string of newly establishing in described sharing area.
8. automated testing method as claimed in claim 6 is characterized in that, described startup file is literal shelves.
9. automated testing method as claimed in claim 1 is characterized in that, a described M node all is a computer.
CN2007103009826A 2007-12-12 2007-12-12 Automation test method Expired - Fee Related CN101459552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103009826A CN101459552B (en) 2007-12-12 2007-12-12 Automation test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103009826A CN101459552B (en) 2007-12-12 2007-12-12 Automation test method

Publications (2)

Publication Number Publication Date
CN101459552A CN101459552A (en) 2009-06-17
CN101459552B true CN101459552B (en) 2011-03-09

Family

ID=40770195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103009826A Expired - Fee Related CN101459552B (en) 2007-12-12 2007-12-12 Automation test method

Country Status (1)

Country Link
CN (1) CN101459552B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743990B (en) * 2023-08-16 2023-10-27 北京智芯微电子科技有限公司 Video stream testing method and video stream testing processing method of embedded equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324021A (en) * 2000-05-17 2001-11-28 英业达股份有限公司 Expandable automatic test platform
CN1553632A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Apparatus for realizing high service amount test in wide-band network
CN1893374A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Network pressure testing system based on document data access and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324021A (en) * 2000-05-17 2001-11-28 英业达股份有限公司 Expandable automatic test platform
CN1553632A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Apparatus for realizing high service amount test in wide-band network
CN1893374A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Network pressure testing system based on document data access and method

Also Published As

Publication number Publication date
CN101459552A (en) 2009-06-17

Similar Documents

Publication Publication Date Title
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
US20080229262A1 (en) Design rule management method, design rule management program, rule management apparatus and rule verification apparatus
CA2636649A1 (en) Multi-protocol removable storage device
CN103049405B (en) Android device file management method and system
CN110891000B (en) GPU bandwidth performance detection method, system and related device
WO2014188502A1 (en) Management system, management program, and management method
CN104881355A (en) Method and system for testing test coverage
CN106909429A (en) A kind of synchronous upgrade method and device
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN102169463A (en) Inter-integrated circuit (IIC) bus-based manufacturing information acquisition method and equipment
CN101459552B (en) Automation test method
CN100550206C (en) A kind of method and device of surveying physical parameters of flash memory
CN111479235B (en) Formalization method for detecting wireless sensor network node
CN101894071A (en) Set top box embedded browser integration test method and system
CN109976828B (en) Method and device for configuring file
CN112000589A (en) Data writing method, data reading device and electronic equipment
CN110554905A (en) Starting method and device of container
CN106919407A (en) The method of the embedded product information synchronized update of computer
CN100386739C (en) Computer internal-memory detection method
CN112416639A (en) Slow disk detection method, device, equipment and storage medium
CN105653123A (en) Icon grouping method and terminal equipment
CN104794180B (en) A kind of point reader scanning obtains the method and device of learning materials
CN106293897B (en) Automatic scheduling system of subassembly
TWI833172B (en) System and method of testing memory device and non-transitory computer readable medium
CN115842875B (en) Method, device, computer equipment and medium for determining similar data frames

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110309

Termination date: 20151212

EXPY Termination of patent right or utility model