查看完整版本: 请问命令行启动RFT怎么实现?

sumagon 2007-7-23 10:24

请问命令行启动RFT怎么实现?

请问不启动RFT,直接通过命令行启动RFT怎么实现?

eagleyes125 2007-7-23 10:54

-user username

The TestManager user name for login.

-password password

Optional. The TestManager password for login. Do not use this if there is no password.

-project fullpath and full projectname

The name of the TestManager project, which is preceded by its full path. This is case-sensitive.

-build build

The name of an existing TestManager build. See Note below.

-logfolder foldername

The name of an existing TestManager log folder (see Note below) or the file specification for an HTML or a text log. If you use the HTML or text log folder name, you do not need to specify the build.

Note: If you want to create a TestManager log, make sure you create the TestManager build and the TestManager log folders first. See the note about TestManager integration at the end of this topic. If these two folders do not exist, execution will fail when you run Functional Tester unattended in batch mode.

-log logname

The name of the TestManager, HTML or text log. If you use the HTML or text log name, you do not need to specify the build.

java -Drational_ft.install.dir="C:\Program Files\IBM\Rational\Software Development Platform\6.0\FunctionalTester\eclipse\plugins\com.rational.test.ft.wswplugin_6.1.0" -classpath "C:\Program Files\IBM\Rational\Software Development Platform\6.0\FunctionalTester\eclipse\plugins\com.rational.test.ft.wswplugin_6.1.0\rational_ft.jar" com.rational.test.ft.rational_ft -datastore \\My_project\AUser\RobotJProjects -user admin -project \\My_project\AUser\TestManagerProjects\Test.rsp -build "Build 1" -logfolder "Default" -log "Al_SimpleClassicsA#1" -rt.log_format "TestManager" -rt.bring_up_logviewer true -playback basetests.SimpleClassicsA_01

eagleyes125 2007-7-23 10:56

如果你不想在RFT运行完脚本后显示log的话,你可以像下面这样改动上面的脚本。

-rt.bring_up_logviewer false

sumagon 2007-7-23 11:59

谢谢版本的回答!
还想请教一下如果我在一台主机上是否可以通过命令控制局域网内的另一台主机上的RFT脚本启动?sdlkfj2

eagleyes125 2007-7-23 17:51

When you associate a Functional Tester project with a Rational project, you can use TestManager both to run your Functional Tester scripts and to coordinate testing activities from a single Windows computer, called the Local computer.

When a test runs, scripts play back on the Local computer or on the computers that you have designated as Agent computers. You use Agent computers to perform these tasks:

Run scripts on more than one computer. If you are running a test, you can save time by running the scripts on the next available Agent computer instead of running all scripts on the Local computer.

Test different machine configurations. If you are testing various hardware and software configurations, you can run scripts on Agent computers that are set up with different configurations.

Run Functional Tester scripts remotely on Linux or Windows computers. If you run Functional Tester scripts remotely, you must enable environments and configure applications on the Linux or Windows Agent computers. For information, see the Rational Functional Tester Installation Guide.


这个我也没具体试过,以后有时间会试的用一下,到时再具体回答些问题。
页: [1]
查看完整版本: 请问命令行启动RFT怎么实现?