CN101459552A - Automation test method - Google Patents

Automation test method Download PDF

Info

Publication number
CN101459552A
CN101459552A CNA2007103009826A CN200710300982A CN101459552A CN 101459552 A CN101459552 A CN 101459552A CN A2007103009826 A CNA2007103009826 A CN A2007103009826A CN 200710300982 A CN200710300982 A CN 200710300982A CN 101459552 A CN101459552 A CN 101459552A
Authority
CN
China
Prior art keywords
test
sharing area
node
word string
testing method
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
CNA2007103009826A
Other languages
Chinese (zh)
Other versions
CN101459552B (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

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 M node.At first, in M node, determine a specific node.In specific node, set up a sharing area, make other M-1 node read sharing area.Then, in sharing area, set up a test word string.When the i node reads the test word string in sharing area, the i node will carry out a test program automatically, and 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, at the startup file of the filename of setting up " stress-test-start.txt " 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 (12)

1. an automated testing method is applicable to a network, and this network comprises M node, and M is a positive integer, and this automated testing method comprises:
In M node, determine a specific node;
In this specific node, set up a sharing area, make other M-1 node read this sharing area;
In this sharing area, set up a test word string;
When the i node reads this test word string in this sharing area, the i node will carry out a test program, and wherein i is a positive integer.
2. automated testing method as claimed in claim 1 is characterized in that this network also comprises a server, and this server has P magnetic region, and wherein, P is a positive integer.
3. automated testing method as claimed in claim 2 is characterized in that, also comprises:
Set a test number of desire test, wherein this test number is the number of those nodes of desire test, and is expressed as N, and wherein, N is a positive integer.
4. automated testing method as claimed in claim 3 is characterized in that, the step of setting this test number of desire test comprises:
Judge whether this sharing area has stored a Parameter File of the filename with this test number;
Stored this Parameter File of the filename of this test number when this sharing area, then deleted this Parameter File, and rebulid this Parameter File with this test number in this sharing area; And
Do not store this Parameter File of the filename of this test number when this sharing area, then set up this Parameter File with this test number in this sharing area.
5. automated testing method as claimed in claim 4 is characterized in that, this Parameter File is literal shelves.
6. automated testing method as claimed in claim 3 is characterized in that, when the i node reads this test word string in this sharing area, comprising:
Read this test number N in this sharing area;
Quotient after being divided by according to the magnetic region number P of this server and this test number N determines the magnetic region number of 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 this server magnetic region carry to the i node; And
Test C magnetic region of i node institute carry in regular turn.
7. automated testing method as claimed in claim 1 is characterized in that, also comprises the i node reads this test word string in this sharing area before:
Those nodes of in this network each detect this sharing area respectively and whether have this test word string.
8. automated testing method as claimed in claim 7 is characterized in that, after the i node is finished this test program, also comprises:
Again detect this sharing area and whether have this test word string; And
When this sharing area has this test word string, the i node will carry out this test program again.
9. automated testing method as claimed in claim 1 is characterized in that, the step of setting up this test word string in this sharing area comprises:
In this sharing area, write a startup file of filename with this test word string.
10. automated testing method as claimed in claim 9 is characterized in that, the step that writes this startup file of the filename with this test word string in this sharing area comprises:
Judge whether this sharing area has stored this startup file of the filename with this test word string;
Store this startup file of the filename of this test word string when this sharing area, then deleted this startup file, and rebulid this startup file of the filename with this test word string in this sharing area; And
Do not store this startup file of the filename of this test word string when this sharing area, then set up this startup file of the filename with this test word string in this sharing area.
11. automated testing method as claimed in claim 9 is characterized in that, this startup file is literal shelves.
12. automated testing method as claimed in claim 1 is characterized in that, those nodes are 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 true CN101459552A (en) 2009-06-17
CN101459552B 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)

Cited By (1)

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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1154922C (en) * 2000-05-17 2004-06-23 英业达股份有限公司 Expandable automatic test platform
CN100484041C (en) * 2003-05-29 2009-04-29 华为技术有限公司 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN101459552B (en) 2011-03-09

Similar Documents

Publication Publication Date Title
EP1989857B1 (en) Multi-protocol removable storage device
TW201232294A (en) Formatting data by example
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN110891000B (en) GPU bandwidth performance detection method, system and related device
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN110765032A (en) Method for reading and writing I2C memory based on system management bus interface
CN114564852A (en) Operation method of FMEA data node and electronic equipment
CN114327258B (en) Solid state disk processing method, system, equipment and computer storage medium
CN101459552B (en) Automation test method
CN117149550A (en) Solid state disk performance detection method and device and electronic equipment
CN109976828B (en) Method and device for configuring file
CN112000589A (en) Data writing method, data reading device and electronic equipment
CN104182479A (en) Method and device for processing information
CN106919407A (en) The method of the embedded product information synchronized update of computer
CN100386739C (en) Computer internal-memory detection method
CN113821369A (en) Method, device and medium for memory polling
CN107885649A (en) The performance test methods and device of IOS application programs
CN105242880A (en) Method for automatically creating Raid and executing pressure test
CN102023918A (en) Method for testing server products
JP2007249495A (en) Software verification method, information processor and program
CN106979794A (en) Sensor testing method and device
CN108132990B (en) Method and device for replacing APP built-in picture and storage medium
CN107450894A (en) Notify the method and server system of start-up phase
CN101887395B (en) Storage access method as well as storage access device applying same and central processing unit
CN115391225A (en) Pressure measurement method and device

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