CN101714995A - Method for completely testing iSCSI target and generating report - Google Patents
Method for completely testing iSCSI target and generating report Download PDFInfo
- Publication number
- CN101714995A CN101714995A CN200910253315A CN200910253315A CN101714995A CN 101714995 A CN101714995 A CN 101714995A CN 200910253315 A CN200910253315 A CN 200910253315A CN 200910253315 A CN200910253315 A CN 200910253315A CN 101714995 A CN101714995 A CN 101714995A
- Authority
- CN
- China
- Prior art keywords
- test
- configuration
- equipment under
- test case
- iscsi target
- 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
Links
Images
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention discloses a method for completely testing an iSCSI (internet Small Computer System Interface) target and generating a report, which is used for continuously finishing tests on a plurality of test cases on a tested device serving as the iSCSI target. The method comprises the following steps of: a, judging whether a first test case needs the configuration of the tested device; b, modifying the configuration of the tested device according to a configuration requirement of the first test case, and bringing the modified configuration into effect; c, carrying out the test on the first test cast; d, judging whether a second test case is needed to be carried out; e, if so, skipping to the step a; and f, otherwise, ending the test and generating a test report.
Description
Technical field
The present invention is about the method for a kind of test internet small machine system interface (internet Small ComputerSystem Interface, be called for short iSCSI) target, especially about a kind of completely testing iSCSI target and generate method of reporting.
Background technology
At present, in the testing protocol consistency process at iscsi target (iSCSI target), different tests oneself requires equipment under test, and (Device Under Test DUT) has different configurations.For example, test challenge handshake agreement (Challenge-Handshake Authentication Protocol, be called for short CHAP) test case the time, need equipment under test correctly to dispose the information relevant, comprise and carry out necessary User Name of chap authentication (unidirectional or two-way) and Secret (unidirectional or two-way) with CHAP.When testing the test case of multi-link (Multi-Connection), need equipment under test correctly to dispose and support multi-link.When test errors is recovered the test case of (Error Recovery), need equipment under test correctly to dispose and support Error Recovery Level>1.
Therefore, for completely testing iSCSI target, need provide a kind of can be in order to finish the method for the test of a plurality of test cases on as the equipment under test of iscsi target continuously.
Summary of the invention
In order to solve existing problem in the above-mentioned prior art, the object of the present invention is to provide a kind of completely testing iSCSI target (iSCSI target) and generate method of reporting, and then whole test is finished automatically and intactly.
A kind of completely testing iSCSI target provided by the present invention also generates method of reporting, is the test that is used for finishing continuously on as the equipment under test of iscsi target a plurality of test cases, and the method comprises following steps:
A, judge whether first test case needs to carry out the configuration of equipment under test; B, revise the configuration of equipment under test, and make amended configuration take-effective according to the configuration requirement of first test case; The test of c, execution first test case; D, judge whether need to carry out second test case; E is if then jump to step a; And f, if not, then finish test and generate test report.
Wherein, manually revise the configuration of equipment under test.
Wherein, see through the plug-in type program module is automatically revised equipment under test according to the configuration requirement of first test case configuration.
Wherein, seeing through the plug-in type program module automatically revises the configuration system of equipment under test and further comprises following steps: see through safety shell protocol login equipment under test; According to the configuration requirement of first test case, revise the configuration of iscsi target; Restart the iscsi target service, so that amended configuration take-effective; And cancellation safety shell protocol link.
Wherein, seeing through the plug-in type program module automatically revises the configuration system of equipment under test and further comprises following steps: see through Telnet login equipment under test; According to the configuration requirement of first test case, revise the configuration of iscsi target; Restart the iscsi target service, so that amended configuration take-effective; The link of cancellation Telnet.
The configuration requirement of first test case and second test case wherein, is provided through the table of comparisons of test case and equipment under test configuration attribute.
Description of drawings
Fig. 1 is the schematic diagram of the test case of the present invention and the equipment under test configuration attribute table of comparisons;
Fig. 2 is completely testing iSCSI target of the present invention and the flow chart of steps that generates method of reporting;
Fig. 3 is the flow chart of steps of an exemplary operation of plug-in type program module of the present invention;
Fig. 4 is the flow chart of steps of another exemplary operation of plug-in type program module of the present invention.
Wherein, Reference numeral:
100 test cases and the equipment under test configuration attribute table of comparisons
101 test cases
102 iscsi target configuration informations
Embodiment
Relevant characteristics and implementation of the present invention cooperate diagram to be described in detail as follows do preferred embodiment now.
Now, please refer to Fig. 1 and Fig. 2, a kind of completely testing iSCSI target provided by the present invention also generates method of reporting, is used for finishing continuously on as the equipment under test of iscsi target the test of a plurality of test cases, and wherein concrete steps are as described below.
At first, judge whether first test case in a plurality of test cases needs to carry out the configuration (step 200) of equipment under test.If do not need, then carry out the test (step 202) of first test case.If desired, then revise the configuration of equipment under test, and make amended configuration take-effective (step 201) according to the configuration requirement of first test case.
As shown in Figure 1, the configuration requirement of test case can provide through the test case and the equipment under test configuration attribute table of comparisons 100.The test case and the equipment under test configuration attribute table of comparisons 100 comprise test case 101 fields and iscsi target configuration information 102 fields.The content of test case 101 field correspondences is titles of each test case, and the content of iscsi target configuration information 102 field correspondences is specific requirements of iscsi target configuration.A test case can corresponding a plurality of different iscsi targets configurations.
The configuration of revising equipment under test can manually or see through the plug-in type program module and automatically finish.
Manual mode is to dispose equipment under test by the user according to the configuration requirement of test case, after configuration is finished and is come into force, and the test of implementation of test cases.
Mode is to see through a plug-in type program module automatically equipment under test to be configured according to the configuration requirement that the test case and the equipment under test configuration attribute table of comparisons 100 are provided automatically.The plug-in type program module can see through Secure Shell (Secure Shell, abbreviation SSH), Telnet (Telnet), remote procedure call (Remote Procedure Call, be called for short RPC) wait variety of protocol and equipment under test communication, use the configuration of modification equipment under test.
As shown in Figure 3, when equipment under test was supported the SSH agreement, the plug-in type program module saw through SSH agreement login equipment under test (step 300).Then, the configuration requirement of the current test case that the plug-in type program module is provided according to test case and the equipment under test configuration attribute table of comparisons 100 is revised the configuration (step 301) of iscsi target.After configuration modification is finished, restart the iscsi target service or carry out equivalent operation, so that amended configuration take-effective (step 302).At last, nullify SSH link (step 303).
As shown in Figure 4, when equipment under test was supported the Telnet agreement, the plug-in type program module saw through Telnet agreement login equipment under test (step 400).Then, the configuration requirement of the current test case that the plug-in type program module is provided according to test case and the equipment under test configuration attribute table of comparisons 100 is revised the configuration (step 401) of iscsi target.After configuration modification is finished, restart the iscsi target service or carry out equivalent operation, so that amended configuration take-effective (step 402).At last, nullify Telnet link (step 403).
After equipment under test has the required configuration of first test case, on equipment under test, carry out the test (step 202) of first test case.
After the test execution of first test case finishes, judge whether to need to carry out second test case (step 203).If desired, then jump to step 200, repeated execution of steps 200 is to step 202.If do not need, then finish test and generate complete test report (step 204) automatically.
Claims (6)
1. a completely testing iSCSI target and generate method of reporting is used for finishing continuously on as the equipment under test of iscsi target the test of a plurality of test cases, it is characterized in that the method includes the steps of:
A, judge whether one first test case needs to carry out the configuration of equipment under test;
B, revise the configuration of this equipment under test, and make amended configuration take-effective according to the configuration requirement of this first test case;
C, carry out the test of this first test case;
D, judge whether need to carry out one second test case;
E is if then jump to described step a; And
F, if not then finishes test and generates test report.
2. the method for claim 1 is characterized in that, manually revises the configuration of this equipment under test.
3. the method for claim 1 is characterized in that, sees through a plug-in type program module is automatically revised this equipment under test according to the configuration requirement of this first test case configuration.
4. method as claimed in claim 3 is characterized in that, further comprises following steps:
See through a safety shell protocol and login this equipment under test;
According to the configuration requirement of this first test case, revise the configuration of this iscsi target;
Restart this iscsi target service, so that amended configuration take-effective; And
Nullify this safety shell protocol link.
5. method as claimed in claim 3 is characterized in that, further comprises following steps:
See through a Telnet and login this equipment under test;
According to the configuration requirement of this first test case, revise the configuration of this iscsi target;
Restart this iscsi target service, so that amended configuration take-effective; And
Nullify this Telnet link.
6. the method for claim 1 is characterized in that, the table of comparisons that sees through a test case and equipment under test configuration attribute provides the configuration requirement of this first test case and this second test case.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910253315A CN101714995A (en) | 2009-11-30 | 2009-11-30 | Method for completely testing iSCSI target and generating report |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910253315A CN101714995A (en) | 2009-11-30 | 2009-11-30 | Method for completely testing iSCSI target and generating report |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101714995A true CN101714995A (en) | 2010-05-26 |
Family
ID=42418271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910253315A Pending CN101714995A (en) | 2009-11-30 | 2009-11-30 | Method for completely testing iSCSI target and generating report |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101714995A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368762A (en) * | 2012-04-05 | 2013-10-23 | 百度在线网络技术(北京)有限公司 | Testing method, system and device for big data comparison |
CN105356983A (en) * | 2015-09-24 | 2016-02-24 | 浪潮电子信息产业股份有限公司 | Method for improving iSCSI protocol conformance test software iscsisim |
CN105827460A (en) * | 2016-05-11 | 2016-08-03 | 深圳市共进电子股份有限公司 | Automatic testing method, device and system of network device |
CN107547309A (en) * | 2017-08-21 | 2018-01-05 | 北京奇安信科技有限公司 | A kind of automated testing method and device of security gateway performance |
-
2009
- 2009-11-30 CN CN200910253315A patent/CN101714995A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368762A (en) * | 2012-04-05 | 2013-10-23 | 百度在线网络技术(北京)有限公司 | Testing method, system and device for big data comparison |
CN103368762B (en) * | 2012-04-05 | 2017-03-15 | 百度在线网络技术(北京)有限公司 | Big data contrast test method, system and device |
CN105356983A (en) * | 2015-09-24 | 2016-02-24 | 浪潮电子信息产业股份有限公司 | Method for improving iSCSI protocol conformance test software iscsisim |
CN105356983B (en) * | 2015-09-24 | 2019-05-14 | 浪潮电子信息产业股份有限公司 | A kind of improved method of iSCSI protocol Conformance Test Software iscsisim |
CN105827460A (en) * | 2016-05-11 | 2016-08-03 | 深圳市共进电子股份有限公司 | Automatic testing method, device and system of network device |
CN107547309A (en) * | 2017-08-21 | 2018-01-05 | 北京奇安信科技有限公司 | A kind of automated testing method and device of security gateway performance |
CN107547309B (en) * | 2017-08-21 | 2020-09-04 | 奇安信科技集团股份有限公司 | Automatic testing method and device for security gateway performance |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110008109B (en) | Application testing method and device | |
CN102523052B (en) | Testing method and testing device | |
CN105354118B (en) | Automatic test approach, the apparatus and system of intelligent terminal | |
CN109376088B (en) | Automatic test system and automatic test method | |
CN103973858B (en) | The Auto-Test System of mobile terminal | |
CN105099811A (en) | Interface testing method and device | |
CN108228444B (en) | Test method and device | |
CN111159049A (en) | Automatic interface testing method and system | |
CN107015902B (en) | Test method and test equipment | |
KR20140106857A (en) | Protocol conformity verification method, apparatus performing the same and systme performing the same | |
CN108345449A (en) | A kind of information processing method, device, storage medium and computer equipment | |
CN101714995A (en) | Method for completely testing iSCSI target and generating report | |
CN104199780A (en) | Method and system testing POS application program | |
CN103164324A (en) | Microblog test method and device | |
JP4064392B2 (en) | Scenario generation device, pseudo base station, scenario generation program, and recording medium | |
KR20120102967A (en) | System and method for verifying application | |
CN104917633A (en) | Method and device simulating FOTA upgrade | |
CN105227597A (en) | A kind of method, Apparatus and system obtaining terminal equipment screen-picture | |
CN103186465A (en) | Browser compatibility testing method and system for webpage user interface | |
CN103176904B (en) | A kind of simulation test platform software architecture and the method for testing based on this framework | |
CN104461629B (en) | PC terminals and its method for installing application program of mobile phone | |
CN105243015B (en) | Method and system for automatically testing software | |
KR20160004030A (en) | Test apparatus of mobile device, system and controlling method | |
CN111736893B (en) | Software package version verification method and related device | |
CN108009084A (en) | A kind of test method for mixing mobile application, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100526 |