继上篇介绍File功能模块之后,今天我们来介绍vTESTstudio工程使用过程的种的另外一个重要的工具栏Home,这块将是我们使用vTESTstudio编程中使用最多的一个功能模块。话不多说,下面我们就来一一介绍该功能栏能在我们编程的时候做哪些事情。
2、Home
图标 | 中文描述 | 英文描述 |
将剪切板的信息粘贴在工程中的制定位置(Paste) | With a click on the symbol you insert the contents of the clipboard at the active cursor position in the text. | |
剪切(Cut) | With a click on the symbol you delete the selected text and save it in the clipboard. Click on Paste to re-insert the text back into the document | |
复制(copy) | With a click on the symbol you copy the selected text to the clipboard. The document is not changed in performing this action. Click on Paste to re-insert the text back into the document | |
删除(delete) | With a click on the symbol you delete the selected text. | |
测试用例属性 在这里,您可以定义测试用例属性,以便更详细地描述或分类测试用例 | Here you can define test case attributes in order to describe or categorize your test cases in more detail. | |
测试用例概述 支持对专用属性值进行过滤,同时编辑多个测试用例的属性值和链接的跟踪项(我主要预览测试用例不常用) | Filtering on dedicated attribute values is supported as well as editing of attribute values and linked trace items for multiple test cases at once. | |
(重新)编译单个测试测试单元,并生成(*.VTUEXE)文件 | With a click on the symbol you create an executable test unit (*.VTUEXE) from the active file. CANoe, for example, can import and execute this test unit. With a click on the symbol you rebuild a test unit. | |
(重新)编译所有测试测试单元,并生成多个(*.VTUEXE)文件 | With a click on the symbol you create executable test units (*.VTUEXE) from all open files. CANoe, for example, can import and execute these test units. | |
dbc、系统变量的添加不建议在这里使用,最常用的就是test case是否出现错误就停止执行该脚本或该工程。想了解更多可以去直接点进去看下 | With a click on the symbol you open the project configuration | |
主要用来dll文件,其他的工程大家可以自行了解 | With a click on the symbol you open the test unit configuration | |
最下方的输出面板包含信息看右侧 | ||
未使用过,有了解的可以介绍下 | Out of the explorer, the functions can be added to the respective editors using drag and drop. Alternatively the functions can be added to the editors by using the text input completion feature | |
查找任意文本 | With a click on the symbol you open the Find and Replace dialog. With a click on the symbol you open the Find and Replace dialog | |
替换任意文本 | With a click on the symbol you open the Find and Replace dialog. With a click on the symbol you open the Find and Replace dialog | |
单击符号即可打开“查找结果”窗口 | With a click on the symbol you open the Find Results Window | |
注释选中部分的代码 | With a click on the symbol you comment selected lines out. Therefor you can select single lines in the Text Editor or single sections from the Navigator | |
取消注释部分的代码 | With a click on the symbol you remove the comment | |
选中当前页面所有内容 | With a click on the symbol you select the entire text | |
跳转到某一行 | With a click on the symbol you open a dialog in which you can enter a line number for the currently active file which you would like to navigate to |
简单做下总结,Home模块常用和比用的功能主要就是Build模块、查找替换、注释|取消注释这几个模块,Build模块主要是我们在日常开发代码过程中通过不断地编译去查找一些编译的bug提前解决一些问题保证代码的健壮性;查找替换就是在我们代码量较大的时候无法通过记忆快速的对某一部分进行修改的时候就会有很大的作用;注释和取消注释就不用说了,都是代码开发中常用的功能,这里能够模块化更加方便;