CN107357719A - A kind of operating function method of testing for storing shared file, apparatus and system - Google Patents

A kind of operating function method of testing for storing shared file, apparatus and system Download PDF

Info

Publication number
CN107357719A
CN107357719A CN201710447947.0A CN201710447947A CN107357719A CN 107357719 A CN107357719 A CN 107357719A CN 201710447947 A CN201710447947 A CN 201710447947A CN 107357719 A CN107357719 A CN 107357719A
Authority
CN
China
Prior art keywords
test
storage
shared
file
devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710447947.0A
Other languages
Chinese (zh)
Inventor
朱渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201710447947.0A priority Critical patent/CN107357719A/en
Publication of CN107357719A publication Critical patent/CN107357719A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a kind of operating function method of testing for storing shared file, including:Device path is shared in the storage obtained on Devices to test;According to the shared device path of storage, operation processing is carried out to storing the file in shared device path;The directory file information that the shared equipment of storage is shown in Devices to test serial ports is checked again, judges whether operation processing is effective, if effectively, judging the operating function test passes of the storage shared file of Devices to test;Otherwise the operating function test failure of the storage shared file of Devices to test is judged.In addition, the invention also discloses a kind of operating function test device and system for storing shared file;The test device and system can use method of testing disclosed by the invention store the operating function of shared file and test.By the method for testing of the present invention, difficulty of test is simplified;Improve testing efficiency;Mitigate tester's work difficulty, shorten test period, reduce product cost.

Description

A kind of operating function method of testing for storing shared file, apparatus and system
Technical field
The present invention relates to communication test field, more particularly to a kind of operating function method of testing for storing shared file, dress Put and system.
Background technology
The test for storing shared file operating function is manual test at present, simply simply to storing shared equipment File in path operates, and then checks whether operation comes into force in USB storage device, the integrity test difficulty of the function It is larger, need tester very skilled to the operational order of USB device in Linux, the engaged test personnel substantial amounts of testing time, Influence the testing progress of test event.
The content of the invention
The present invention provides a kind of operating function method of testing for storing shared file, apparatus and system, by the way that storage is common Enjoy fileinfo and shared fileinfo of the equipment in the catalogue that Devices to test serial ports (bottom) is shown of storage in device path It is compared to test storage shared file operating function, simplifies difficulty of test, improve testing efficiency.
A kind of operating function method of testing for storing shared file of the present invention, including:
Device path is shared in the storage that S100 is obtained on Devices to test;
S200 is carried out at operation according to the shared device path of the storage to the file in the shared device path of the storage Reason;The directory file information that the shared equipment of the storage is shown in Devices to test serial ports is checked again, judges that the operation processing is It is no effective, if so, into step S300, otherwise into step S400;
S300 judges the operating function test passes of the storage shared file of the Devices to test;
S400 judges the operating function test failure of the storage shared file of the Devices to test.
The shared device path of storage refers to the entrance storage device specified path address that Devices to test provides a user, user The address is inputted at PC ends to be entered in storage device, carry out the operation processing of file.
The Devices to test of the present invention has the data-interface of storage device, will can access in the storage device of data-interface The storage information in face is shared, such as modem, interchanger etc..
Present invention utilizes storage device to show situation, the display situation of bottom serial ports in Devices to test serial ports (bottom) The fileinfo in storage device, therefore the foundation that can be compared as test are really reacted;It is shared to storing File in device path operates, and then checks the catalogue file letter of the shared equipment of storage shown in Devices to test serial ports Breath, sees whether the directory file information for the shared equipment of storage that serial ports is shown after operating also occurs corresponding operation change, so as to Judge store shared file operation whether come into force, and then judge Devices to test storage shared file operating function whether OK. This process simplify difficulty of test;Improve testing efficiency;Mitigate tester's work difficulty;Shorten test period;Reduce production Product cost.
Further, the operation processing described in the step S200 includes reading, writes, deletes.
Further, the step S200 includes:S210 stores the read test of shared file, including:
S211 calls listdir functions to open the shared device path of the storage, and travels through in the shared equipment of the storage Fileinfo;
S212 calls telnet orders connection Devices to test and calls cd orders to enter the shared equipment Linux mesh of the storage In record, export the fileinfo in the shared equipment Linux catalogues of the storage and interrupt telnet connections;
In the S213 shared device paths of storage fileinfo whether with shown in Devices to test serial ports described in Fileinfo in the shared equipment Linux catalogues of storage is consistent, if so, into step S214, otherwise into step S215;
S214 judges that read operation is effective, and the read functions of the storage shared file of the Devices to test are normal;
S215 judges that read operation is invalid, and the read functions of the storage shared file of the Devices to test are abnormal.
Further, the step S200 also includes:The write-in test of S220 storage shared files, including:
S221 calls copy orders to copy to a file in the shared equipment of the storage;
S222 calls telnet orders connection Devices to test, calls cd orders to enter in the shared equipment Linux catalogues of storage Whether traversal is containing the file replicated, if so, then entering step S223, otherwise into step S224;
S223 judges that write operation is effective, and the storage shared file write-in functions of the Devices to test are normal;
S224 judges that write operation is invalid, and the storage shared file write-in functions of the Devices to test are abnormal.
Further, the step S200 also includes:The deletion test of S230 storage shared files, including:
S231 calls remove orders to delete a file in the shared equipment of the storage;
S232 calls telnet orders connection Devices to test, calls cd orders to enter the shared equipment Linux mesh of the storage Whether traveled through in record containing the file deleted;If so, then enter step S234, otherwise into step S233;
S233 judges that deletion action is effective, and the storage shared file deletion function of the Devices to test is normal;
S234 judges that deletion action is invalid, and the storage shared file of the Devices to test deletes dysfunction.
Further, the step S100 includes:
S110 call functions open the WEB page of Devices to test, into the shared page of storage;
The user that S120 calls the GET functions acquisition page to provide enters the shared device path of storage.
On the other hand, the present invention provides a kind of operating function test device for storing shared file, including:Acquisition module, Operation module, searching modul and judge module, the operation module is connected with the acquisition module, searching modul respectively, described Judge module is connected with the operation module, the searching modul respectively, wherein:The acquisition module is obtained on Devices to test The shared device path of storage;The operation module is according to the shared device path of the storage, to the shared device path of the storage In file carry out operation processing, the searching modul checks the catalogue that the shared equipment of the storage is shown in Devices to test serial ports Fileinfo;The judge module judges whether the operation processing is effective, if so, then judging the behaviour of the storage shared file Make function test passes, otherwise, judge the operating function test failure of the storage shared file.
Further, the operation module includes:Read operation submodule, write operation submodule and deletion action Module;File read functions, the file that the operating function test of the storage shared file includes the shared equipment of the storage are write Enter function and file deletes the test of function.
Further, the read operation submodule read functions test includes:The read operation submodule is according to institute The shared device path of storage is stated, reads the fileinfo in the shared equipment of the storage;The searching modul searches the storage The directory file information that shared equipment is shown in Devices to test serial ports;The judge module read operation submodule is read The shared equipment of the storage whether fileinfo that device path is shared in the storage taken is searched with the searching modul exists The directory file information that Devices to test serial ports is shown is consistent, if so, then judge that the read operation submodule read functions are effective, Otherwise, judge that the read operation submodule read functions are invalid;
The write-in functions test of said write operation submodule includes:It is shared in the storage that said write operates submodule Increase a file in equipment newly;The searching modul searches the catalogue text that the shared equipment of the storage is shown in Devices to test serial ports Whether containing the newly-increased file of said write operation submodule in part information, if so, then the judge module judges said write It is effective to operate the write-in functions of submodule, otherwise, judges that said write operation submodule write-in functions are invalid;
The deletion functional test of the deletion action submodule includes:Institute of the deletion action submodule in Devices to test State in the shared device path of storage and delete a file;The searching modul searches the shared equipment of the storage in Devices to test string Whether file that the deletion action submodule delete is contained in the directory file information of mouth display, if so, the then judgement mould Block judges that the deletion function of the deletion action submodule is invalid, otherwise, judges the deletion function of the deletion action submodule Effectively;
Read functions, the write-in functions of said write operation submodule when the read operation submodule, the deletion When the deletion function of operation submodule comes into force, the judge module judges the storage shared file of the Devices to test Operating function test passes.
Finally, the present invention also provides a kind of operating function test system for storing shared file, including of the present invention For test device, Devices to test and the storage device of the operating function for testing storage shared file, wherein:It is described before test Test device and the Devices to test wired connection, the storage device access the data-interface of the Devices to test, so as to altogether Enjoy the fileinfo of the storage device;
During test, according to the instruction of user, the test device starts test script, obtains the storage of the Devices to test Shared device path;The test device is according to the shared device path of the storage, in the shared device path of the storage File carries out operation processing, then checks the directory file information that the shared equipment of the storage is shown in Devices to test serial ports, judges Whether the operation processing is effective, if so, then judging the Devices to test storage sharing functionality test passes, otherwise, judges institute State Devices to test storage sharing functionality test failure.
The present invention is by sharing fileinfo in device path by storage and storing shared equipment at Devices to test serial ports (bottom Layer) display catalogue in fileinfo be compared test storage shared file operating function, simplify difficulty of test, carry High testing efficiency;Tester's work difficulty is alleviated, shortens test period, reduces testing cost.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of flow chart for the operating function method of testing embodiment one for storing shared file of the present invention;
Fig. 2 is the flow chart of the read test of the storage shared file in another embodiment of the present invention;
Fig. 3 is the flow chart of the write-in test of the storage shared file in another embodiment of the present invention;;
Fig. 4 is the flow chart of the deletion test of the storage shared file in another embodiment of the present invention;
Fig. 5 is a kind of block diagram of operating function test device embodiment one for storing shared file of the present invention;
Fig. 6 is a kind of another embodiment block diagram of operating function test device for storing shared file of the present invention;
Fig. 7 is a kind of another embodiment flow chart of operating function method of testing for storing shared file of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of operating function method of testing for storing shared file, embodiment one is as shown in figure 1, bag Include:
Device path is shared in the storage that S100 is obtained on Devices to test;
S200 is carried out at operation according to the shared device path of the storage to the file in the shared device path of the storage Reason;The directory file information that the shared equipment of the storage is shown in Devices to test serial ports is checked again, judges that the operation processing is It is no effective, if so, into step S300, otherwise into step S400;
S300 judges the operating function test passes of the storage shared file of the Devices to test;
S400 judges the operating function test failure of the storage shared file of the Devices to test.
Whether the method for testing of the present invention is qualified for testing the storage shared file operating function of Devices to test, that is, is grasped Whether the storage shared file for making Devices to test comes into force.Access storage device on Devices to test, for example, by USB data interface or Person's SD card slot etc. accesses storage device, realizes and is shared the fileinfo in storage device, and Devices to test is by storage device Content share, equipment is shared in the storage that storage device now is equivalent to Devices to test, and the file of storage device storage is just It is storage shared file.Operating function to storing shared file, specifically, including to store the reading of shared file, deletion, Write-in functions etc., for example USB storage device is inserted in DUT USB interface, realize that the information of USB storage device is read, file The functions such as deletion, transmission.
The shared device path of storage refers to that Devices to test is provided a user into storage device specified path address, Yong Hu PC ends, which input the address, to be entered in storage device, carry out the operation processing of file.
The shared equipment of storage refers to store shared equipment to be measured in the directory file information that the serial ports of Devices to test is shown Display in equipment bottom, can be as the test foundation of the shared device path of storage.
In above-described embodiment one, step S100 includes:
S110 call functions open the WEB page of Devices to test, into the shared page of storage;
The user that S120 calls the GET functions acquisition page to provide enters the shared device path of storage.
Using different language, the function of calling or order may be different, but the function of finally realizing be it is consistent, Be provided to obtain the shared device path of storage, by other Languages realize said function also protection scope of the present invention it Row.The present embodiment uses python language, and python is a kind of explanation type computer programming language of object-oriented, extensively Processing and Web programmings applied to system management tasks.
After getting the shared device path of storage, it is possible to entered according to the path in storage shared file, so as to right Storage shared file carries out operation processing, specifically, the operation processing described in the step S200 includes reading, writes, deletes Remove.The operating function test of the storage shared file includes the file read functions of the shared equipment of the storage, file write-in Function and file delete the test of function.
Specifically, the step S200 includes:S210 stores the read test of shared file, as shown in Fig. 2 including:
S211 calls listdir functions to open the shared device path of the storage, and travels through in the shared equipment of the storage Fileinfo;
S212 calls telnet orders connection Devices to test and calls cd orders to enter the shared equipment Linux mesh of the storage In record, export the fileinfo in the shared equipment Linux catalogues of the storage and interrupt telnet connections;
In the S213 shared device paths of storage fileinfo whether with shown in Devices to test serial ports described in Fileinfo in the shared equipment Linux catalogues of storage is consistent, if so, into step S214, otherwise into step S215;
S214 judges that read operation is effective, and the read functions of the storage shared file of the Devices to test are normal;
S215 judges that read operation is invalid, and the read functions of the storage shared file of the Devices to test are abnormal.
The shared equipment linux catalogues of storage refer to store display of the shared equipment in DUT bottoms (serial ports), because DUT is Linux system, so the shared equipment presentation of information in Linux of storage is accurate, the shared device path of storage can be used as Test foundation.In the present embodiment, device path is shared according to the storage got, the shared text of all storages can be read Part, if device path is shared in the bottom serial ports shared facility inventory fileinfo of storage shown and the storage read before If fileinfo is consistent, the just operation of explanation reading storage shared file comes into force, and read functions are normal.
The step S200 also includes:The write-in test of S220 storage shared files, as shown in figure 3, including:
S221 calls copy orders to copy to a file in the shared equipment of the storage;
S222 calls telnet orders connection Devices to test, calls cd orders to enter in the shared equipment Linux catalogues of storage Whether traversal is containing the file replicated, if so, then entering step S223, otherwise into step S224;
S223 judges that write operation is effective, and the storage shared file write-in functions of the Devices to test are normal;
S224 judges that write operation is invalid, and the storage shared file write-in functions of the Devices to test are abnormal.
In above-mentioned write-in test, according to the shared device path of storage, a file is replicated into the shared equipment of storage, quite In being written with a new file in the shared equipment of storage, equipment Linux is shared in the storage that then we show in bottom again This file for seeing if there is and replicating before is searched in catalogue, if any, just explanation write operation is effective, and write-in functions are just Often, otherwise explanation write operation is invalid, write-in functions are abnormal.
The step S200 also includes:The deletion test of S230 storage shared files, as shown in figure 4, including:
S231 calls remove orders to delete a file in the shared equipment of the storage;
S232 calls telnet orders connection Devices to test, calls cd orders to enter the shared equipment Linux mesh of the storage Whether traveled through in record containing the file deleted;If so, then enter step S234, otherwise into step S233;
S233 judges that deletion action is effective, and the storage shared file deletion function of the Devices to test is normal;
S234 judges that deletion action is invalid, and the storage shared file of the Devices to test deletes dysfunction.
Likewise, according to the shared device path of storage, the file that equipment is shared in storage is deleted, deletion action is completed Afterwards, then the file seen and deleted before whether also containing is searched in the shared equipment Linux catalogues of storage, if also having, then Illustrate that deletion action does not come into force, delete dysfunction, illustrate that deletion action comes into force if without if, delete function Normally.
In above-described embodiment, because operating function test includes read test, write-in is tested, it is qualified to delete test, i.e., Read operation is effective, write operation is effective and deletion action effectively after, could judge operation store shared file function give birth to Effect, it can just think that storage shared file operating function is qualified.
Idea of the invention is that will be by the way that fileinfo in the shared device path of storage be shared into equipment Linux with storage Fileinfo is contrasted to test storage shared file operating function in catalogue.This process simplify difficulty of test;Improve Testing efficiency;Mitigate tester's work difficulty;Shorten test period;Reduce product cost.
Based on identical technical concept, the present invention also provides a kind of operating function test device for storing shared file, should Test device is using storage shared file operating function method of testing of the present invention, specifically, the test device such as Fig. 5 institutes Show, including:Acquisition module 10, operation module 20, searching modul 30 and judge module 40, the operation module 20 respectively with it is described Acquisition module 10, searching modul 30 be connected, the judge module 40 respectively with the operation module 20, the phase of the searching modul 30 Connect, wherein:Device path is shared in the storage that the acquisition module 10 is obtained on Devices to test;The operation module 20 is according to described The shared device path of storage, operation processing is carried out to the file in the shared device path of the storage, the searching modul 30 is looked into See the directory file information that the shared equipment of the storage is shown in Devices to test serial ports;The judge module 40 judges the operation Whether processing is effective, if so, then judging the operating function test passes of the storage shared file, otherwise, judges the storage The operating function test failure of shared file.
Preferably, as shown in fig. 6, the operation module 20 includes:Read operation submodule 21, write operation submodule 22 and deletion action submodule 23;The operating function test of the storage shared file includes the text of the shared equipment of the storage Part read functions, file write-in functions and file delete the test of function.
The read functions of read operation submodule 21 test includes:The read operation submodule 21 is according to the storage Shared device path, read the fileinfo in the shared equipment of the storage;It is shared that the searching modul 30 searches the storage The directory file information that equipment is shown in Devices to test serial ports;The read operation submodule of judge module 40 is read The storage share device path fileinfo whether with the searching modul 30 search the storage share equipment exist The directory file information that Devices to test serial ports is shown is consistent, if so, then judging that the read functions of read operation submodule 21 have Effect, otherwise, judges that the read functions of read operation submodule 21 are invalid;
The write-in functions test of said write operation submodule 22 includes:Said write operates submodule 22 in the storage A file is increased newly in shared equipment;The searching modul 30 searches what the shared equipment of the storage was shown in Devices to test serial ports Whether containing the newly-increased file of said write operation submodule 22 in directory file information, if so, then the judge module 40 is sentenced The write-in functions of disconnected said write operation submodule 22 are effective, otherwise, judge the said write operation write-in functions of submodule 22 without Effect;
The deletion functional test of the deletion action submodule 23 includes:The deletion action submodule 23 is in Devices to test The storage share device path in delete a file;The searching modul 30 searches the shared equipment of the storage to be measured Whether file that the deletion action submodule 23 delete is contained in the directory file information that equipment of serial is shown, if so, then institute State judge module 40 and judge that the deletion function of the deletion action submodule 23 is invalid, otherwise, judge the deletion action submodule The deletion function of block 23 is effective;
The write-in functions, described of read functions when the read operation submodule 21, said write operation submodule 22 When the deletion function of deletion action submodule 23 comes into force, the judge module 40 judges that the storage of the Devices to test is total to Enjoy the operating function test passes of file.
Finally, the present invention also provides a kind of operating function test system for storing shared file, including of the present invention For test device, Devices to test and the storage device of the operating function for testing storage shared file, wherein:It is described before test Test device and the Devices to test wired connection, the storage device access the data-interface of the Devices to test, so as to altogether Enjoy the fileinfo of the storage device;
During test, according to the instruction of user, the test device starts test script, obtains the storage of the Devices to test Shared device path;The test device is according to the shared device path of the storage, in the shared device path of the storage File carries out operation processing, then checks the directory file information that the shared equipment of the storage is shown in Devices to test serial ports, judges Whether the operation processing is effective, if so, then judging the Devices to test storage sharing functionality test passes, otherwise, judges institute State Devices to test storage sharing functionality test failure.
Test system of the present invention can use the method for testing described in any embodiment of the present invention to be tested.
Another embodiment of the present invention, storing the operation test system of shared file includes:It is (to be measured to set to test computer, DUT It is standby) and USB storage device, the test system tested using the method for testing of the present invention, and flow is as shown in fig. 7, specific Including:
Prepare:Tester by DUT (Devices to test) by netting twine connecting test computer (test device), in DUT USB USB storage device is connected on mouthful, starts test script.
Step 1, script call function opens DUT WEB page, into the shared page of storage, calls GET functions to obtain page The user that face provides enters the shared device path of storage;
Step 2, call listdir functions to open the shared device path of storage and travel through the file letter in the shared equipment of storage Breath;Call telnet orders connection DUT and call cd orders shared into storing in shared equipment Linux catalogues and exporting storage Fileinfo in equipment linux catalogues simultaneously interrupts telnet connections;
Step 3, directory information in shared device path will be stored and share equipment Linux with the storage shown in DUT serial ports Whether the fileinfo in catalogue is consistent, and " fileinfo that user is opened in the shared device path of storage is different for inconsistent then return Often " and terminate test, unanimously the then return " fileinfo stored in shared device path and the reading of DUT bottoms of user's opening To the shared equipment of storage in information it is consistent ";
Step 4, call copy orders to copy to a file in the shared device path of storage, call telnet orders to connect Meet DUT and call cd orders to enter in the shared equipment Linux catalogues of storage travel through whether contain this document, no then return " is deposited Storage shared file write-in functions do not come into force.", have, return and " store shared file write-in functions to come into force.", call close orders Disconnect telnet connections;
Step 5, call remove orders to delete some file stored in shared equipment, call telnet orders connection DUT simultaneously calls cd orders to enter in the shared equipment Linux catalogues of storage travel through whether contain this document, and having then return, " storage is altogether File deletion function is enjoyed not come into force.", " storage shared file is deleted function and come into force for no then return.", call close orders disconnected Telnet is opened to connect and terminate to test.
The key point of the present invention, by the way that storage is shared into fileinfo and the shared equipment Linux mesh of storage in device path Fileinfo is contrasted to test storage shared file operating function in record.Those skilled in the art is without departing substantially from the present invention Principle and essence on the premise of, various changes or modifications can be made to these embodiments, but these changes and modification are equal Fall into protection scope of the present invention.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. operating function method of testing for storing shared file, it is characterised in that including:
    Device path is shared in the storage that S100 is obtained on Devices to test;
    S200 carries out operation processing according to the shared device path of the storage to the file in the shared device path of the storage; The directory file information that the shared equipment of the storage is shown in Devices to test serial ports is checked again, judges whether the operation processing has Effect, if so, into step S300, otherwise into step S400;
    S300 judges the operating function test passes of the storage shared file of the Devices to test;
    S400 judges the operating function test failure of the storage shared file of the Devices to test.
  2. A kind of 2. operating function method of testing for storing shared file according to claim 1, it is characterised in that the step Operation processing described in rapid S200 includes reading, writes, deletes.
  3. A kind of 3. operating function method of testing for storing shared file according to claim 2, it is characterised in that the step Rapid S200 includes:
    S210 stores the read test of shared file, including:
    S211 calls listdir functions to open the shared device path of the storage, and travels through the text in the shared equipment of the storage Part information;
    S212 calls telnet orders connection Devices to test and calls cd orders to enter the shared equipment Linux catalogues of the storage In, export the fileinfo in the shared equipment Linux catalogues of the storage and interrupt telnet connections;
    In the S213 shared device paths of storage fileinfo whether with the storage that is shown in Devices to test serial ports Fileinfo in shared equipment Linux catalogues is consistent, if so, into step S214, otherwise into step S215;
    S214 judges that read operation is effective, and the read functions of the storage shared file of the Devices to test are normal;
    S215 judges that read operation is invalid, and the read functions of the storage shared file of the Devices to test are abnormal.
  4. A kind of 4. operating function method of testing for storing shared file according to claim 2, it is characterised in that the step Rapid S200 also includes:
    The write-in test of S220 storage shared files, including:
    S221 calls copy orders to copy to a file in the shared equipment of the storage;
    S222 calls telnet orders connection Devices to test, calls cd orders to enter in the shared equipment Linux catalogues of storage and travels through Whether containing the file replicated, if so, then entering step S223, otherwise into step S224;
    S223 judges that write operation is effective, and the storage shared file write-in functions of the Devices to test are normal;
    S224 judges that write operation is invalid, and the storage shared file write-in functions of the Devices to test are abnormal.
  5. A kind of 5. operating function method of testing for storing shared file according to claim 2, it is characterised in that the step Rapid S200 also includes:
    The deletion test of S230 storage shared files, including:
    S231 calls remove orders to delete a file in the shared equipment of the storage;
    S232 calls telnet orders connection Devices to test, calls cd orders to enter in the shared equipment Linux catalogues of the storage Whether traversal contains the file deleted;If so, then enter step S234, otherwise into step S233;
    S233 judges that deletion action is effective, and the storage shared file deletion function of the Devices to test is normal;
    S234 judges that deletion action is invalid, and the storage shared file of the Devices to test deletes dysfunction.
  6. 6. a kind of operating function method of testing of storage shared file according to claim any one of 1-5, its feature exist In the step S100 includes:
    S110 call functions open the WEB page of Devices to test, into the shared page of storage;
    The user that S120 calls the GET functions acquisition page to provide enters the shared device path of storage.
  7. A kind of 7. operating function test device for storing shared file, it is characterised in that including:Acquisition module, operation module, look into Module and judge module are looked for, the operation module is connected with the acquisition module, searching modul respectively, the judge module difference It is connected with the operation module, the searching modul, wherein:
    Device path is shared in the storage that the acquisition module is obtained on Devices to test;
    The operation module is grasped according to the shared device path of the storage to the file in the shared device path of the storage Deal with, the searching modul checks the directory file information that the shared equipment of the storage is shown in Devices to test serial ports;It is described Judge module judges whether the operation processing is effective, if so, then judging that the operating function test of the storage shared file is closed Lattice, otherwise, judge the operating function test failure of the storage shared file.
  8. A kind of 8. operating function test device for storing shared file according to claim 7, it is characterised in that the behaviour Include as module:Read operation submodule, write operation submodule and deletion action submodule;The storage shared file File read functions, file write-in functions and the file that operating function test includes the shared equipment of the storage delete function Test.
  9. A kind of 9. operating function test device for storing shared file according to claim 8, it is characterised in that
    The read operation submodule read functions test includes:
    The read operation submodule reads the file letter in the shared equipment of the storage according to the shared device path of the storage Breath;
    The searching modul searches the directory file information that the shared equipment of the storage is shown in Devices to test serial ports;
    The fileinfo that device path is shared in the storage that the judge module read operation submodule is read is The no shared equipment of the storage searched with the searching modul is consistent in the directory file information that Devices to test serial ports is shown, if Then to judge that the read operation submodule read functions are effective, otherwise, judge the read operation submodule read functions without Effect;
    The write-in functions test of said write operation submodule includes:
    Said write operates submodule and increases a file newly in the shared equipment of the storage;
    The searching modul searches whether the shared equipment of the storage contains in the directory file information that Devices to test serial ports is shown There is the newly-increased file of the write operation submodule, if so, then the judge module judges writing for said write operation submodule It is effective to enter function, otherwise, judges that said write operation submodule write-in functions are invalid;
    The deletion functional test of the deletion action submodule includes:
    The deletion action submodule deletes a file in device path is shared in the storage of Devices to test;
    The searching modul searches whether the shared equipment of the storage contains in the directory file information that Devices to test serial ports is shown There is the file that the deletion action submodule is deleted, if so, then the judge module judges deleting for the deletion action submodule Except function is invalid, otherwise, judge that the deletion function of the deletion action submodule is effective;
    Read functions, the write-in functions of said write operation submodule when the read operation submodule, the deletion action When the deletion function of submodule comes into force, the judge module judges the operation of the storage shared file of the Devices to test Functional test is qualified.
  10. 10. a kind of operating function test system for storing shared file, it is characterised in that including any one of claim 7-9 institutes Operating function test device, Devices to test and the storage device for the storage shared file stated, wherein:
    Before test, the test device and the Devices to test wired connection, the storage device access the Devices to test Data-interface, to share the fileinfo of the storage device;
    During test, according to the instruction of user, the test device starts test script, and the storage for obtaining the Devices to test is shared Device path;
    The test device is grasped according to the shared device path of the storage to the file in the shared device path of the storage Deal with, then check the directory file information that the shared equipment of the storage is shown in Devices to test serial ports, judge at the operation Whether reason is effective, if so, then judging the Devices to test storage sharing functionality test passes, otherwise, judges the Devices to test Store sharing functionality test failure.
CN201710447947.0A 2017-06-14 2017-06-14 A kind of operating function method of testing for storing shared file, apparatus and system Pending CN107357719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710447947.0A CN107357719A (en) 2017-06-14 2017-06-14 A kind of operating function method of testing for storing shared file, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710447947.0A CN107357719A (en) 2017-06-14 2017-06-14 A kind of operating function method of testing for storing shared file, apparatus and system

Publications (1)

Publication Number Publication Date
CN107357719A true CN107357719A (en) 2017-11-17

Family

ID=60272829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710447947.0A Pending CN107357719A (en) 2017-06-14 2017-06-14 A kind of operating function method of testing for storing shared file, apparatus and system

Country Status (1)

Country Link
CN (1) CN107357719A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832455A (en) * 2017-11-24 2018-03-23 郑州云海信息技术有限公司 A kind of data capture method of storage object, system, equipment and storage medium
CN109101382A (en) * 2018-08-06 2018-12-28 郑州云海信息技术有限公司 A kind of truncate automatic test approach, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8146060B2 (en) * 2006-10-10 2012-03-27 Oce Printing Systems Gmbh Data processing system and method for execution of a test routine in connection with an operating system
CN103530124A (en) * 2013-10-18 2014-01-22 中安消技术有限公司 Method and device for sharing hot plug device in Linux system
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device
CN106598798A (en) * 2016-12-19 2017-04-26 四川长虹电器股份有限公司 Method of Android intelligent device to detect USB device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8146060B2 (en) * 2006-10-10 2012-03-27 Oce Printing Systems Gmbh Data processing system and method for execution of a test routine in connection with an operating system
CN103530124A (en) * 2013-10-18 2014-01-22 中安消技术有限公司 Method and device for sharing hot plug device in Linux system
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device
CN106598798A (en) * 2016-12-19 2017-04-26 四川长虹电器股份有限公司 Method of Android intelligent device to detect USB device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832455A (en) * 2017-11-24 2018-03-23 郑州云海信息技术有限公司 A kind of data capture method of storage object, system, equipment and storage medium
CN107832455B (en) * 2017-11-24 2021-09-17 郑州云海信息技术有限公司 Data acquisition method, system, equipment and storage medium of storage object
CN109101382A (en) * 2018-08-06 2018-12-28 郑州云海信息技术有限公司 A kind of truncate automatic test approach, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US5551028A (en) Design data management system and associated method
US5218696A (en) Method for dynamically expanding and rapidly accessing file directories
ES2267534T3 (en) PRODUCT FOR TREATMENT OF TASKS BASED ON COMPOUND DURING THE DEMAND PROCESSING.
KR890007156A (en) How to fetch, insert, and delete key record data
CN100444164C (en) Information processing apparatus, document search method, program, and storage medium
US7464114B2 (en) Method and apparatus to capture and transmit dense diagnostic data of a file system
CN107357719A (en) A kind of operating function method of testing for storing shared file, apparatus and system
CN101533346B (en) Source file comparing unit and method thereof
EP1091295A2 (en) Data management system using a plurality of data operation modules
CN1308838C (en) Method of utilizing virtual equipment file system in expanding memory capacity of movable device
Karabiyik Building an intelligent assistant for digital forensics
CN109829006A (en) A kind of inscriptions on bones or tortoise shells basic data management and intelligent Knowledge Service Platform and building method
EP0410210A2 (en) Method for dynamically expanding and rapidly accessing file directories
CN110061997A (en) A kind of close management system of intelligent account for browser
CN109828715A (en) Record screen method and device
CN109687586A (en) A kind of power monitoring Host Security inspection system
US20050038812A1 (en) Method and apparatus for managing data
CN109947705A (en) A kind of access System and method for of petroleum works data
CN112528272A (en) Public open data-based security and privacy integrated protection system and method
CN106874785A (en) System file access method and device for multiple operating systems
Del Val Non monotonic reasoning and belief revision: syntactic, semantic, foundational and coherence approaches
CN110471623A (en) Fixed disk file wiring method, device, computer equipment and storage medium
CN106844261A (en) The method and apparatus of hot plug is realized in recovery mode
CN106611138A (en) GHOST file security check method and apparatus
Ghelli A class abstraction for a hierarchical type system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171117

WD01 Invention patent application deemed withdrawn after publication