To accomplish this, you can wrap the three lines of code produced by the recorder into a separate method in your test script.
要完成这项操作,可以将记录器生成的三行代码封装到测试脚本的某个单独方法中。
The recording step involves navigation of these pages and closing the browser based on which the RPT recorder automatically generates the TestSample script.
这个记录步骤包括这些页面的导航以及关闭这个浏览器,基于这个浏览器,RPT记录器会自动产生testsample脚本。
The recorder then initiates generation of the TestSample script (Figure 8).
然后这个记录器会开始TestSample脚本的产生(图8)。
Right-click the RegressionScripts folder in the Functional Test Projects view and select Add Script Using Recorder from the menu that pops up.
在功能测试项目视图中右键点击RegressionScripts文件夹,在弹出的菜单中选择添加带有记录的脚本。
Right-click the RegressionScripts folder and select Add Script Using Recorder.
右键点击RegressionScripts文件夹,选择添加记录脚本。
Right-click the RegressionScripts folder and select Add Script Using Recorder.
右键点击RegressionScripts文件夹,选择添加记录脚本。
应用推荐