摘要 |
A solution ( 200 ) for facilitating the test of a command line interface (CLI) of a software product is proposed. For this purpose, the process is divided into two phases. The first phase relates to the generation of a scenarios matrix ( 235 ). This result is achieved by defining each command of the CLI ( 205 - 215 ), and more specifically its arguments and the corresponding properties (such as their acceptable ranges, patterns and/or option choices); the test activity is defined by specifying a desired accuracy level ( 230 ) of the test process. It is then possible to generate ( 220 ) the scenarios matrix automatically, by selecting (according to the desired accuracy level) predefined rules specifying happy paths and errors cases for each property. A second phase relates to the generation of corresponding test cases ( 255 ). For this purpose, an expected result (i.e., an output message with optional verification actions) is associated ( 240 - 250 ) with each test scenario in the respective matrix. This allows creating a test document ( 265 ) for the manual execution of the test process and/or a bucket ( 275 ) for its automatic execution by an automation tool ( 280 ).
|