为什么测试特殊符号
上一篇 /
下一篇 2014-05-20 20:35:30
/ 个人分类:用例设计
Characters are disallowed because they have special meaning on the Command Prompt.
" (double quote)... Denotes the start and end of a quoted filename. Without this, you couldn't have spaces
* (asterisk)... Denotes a wildcard. You might see in Windows search the ability to search for something.
/ (forward slash)... Denotes a command option. If you named a file this and it was used on the command line, it couldn't tell if you were wanting a file named "Subject1/Subject2" or just "Subject1" with the special option called "Subject2".
: (colon)... Denotes a drive (i.e. C:)
> (greater than)... Denotes output redirection. You could run some program>some file and it would mean "Run 'some program' and put the output in the file 'somefile'". The < does the same with input.
< (less than)... Same as > but with input instead of output.
? (question mark)... Also a wildcard character like * is
\ (blackslash)... Separates a directory. foo\bar indicates that bar is in the directory foo.
| (bar)… Command piping. Foo | bar will take the output from foo and use it as the input to bar.
If filenames were allowed with these characters, the command prompt would get confused on if you meant them as part of the filename or part of the command.
相关阅读:
- 基于模型的测试用例设计(2) (zaza9084, 2014-5-07)
- 软件测试中的八大浪费现象 (zaza9084, 2014-5-06)
- 测试用例的关键的认知 (zaza9084, 2014-5-12)
- 汽车中的软件测试(一) (zaza9084, 2014-5-12)
- 汽车中的软件测试 (二) (zaza9084, 2014-5-13)
- 基于云的系统规划和设计性能测试用例 (zaza9084, 2014-5-20)
- UIAutomation: 通过命令行运行测试用例 (zaza9084, 2014-5-15)
- 今天遇到的一个问题,反思怎样才能提高用例质量 (sillybug, 2014-5-14)
- 敏捷测试用例和User Story的关联关系 (zaza9084, 2014-5-19)
- 喜欢软件测试的原因 (zaza9084, 2014-5-29)
收藏
举报
TAG:
软件测试
测试用例