IBM RFT command line execution -datastore -playback parameter

倖福魔咒の 提交于 2019-12-11 09:19:38

问题


I need to start my RFT scripts with a .bat script. I tried this with:

"%IBM_RATIONAL_RFT_INSTALL_DIR%\rational_ft.exe" -datastore "C:\project" -playback "test"

In the .bat file. With a test project in C:\project and a test script named test.java.

When I start the batch file, RFT opens a playback window and is looking for the script. But I always receive a error:

[Rational.Test.Ft.Application.ScriptPlaybackException: Could not get type for [test].

I found out that this must be a problem with the path of the test script.

But I still don't know what is going on, the path is correct and I tried everything without a positive result. RFT playback starts, but still cant find this script.

I hope anybody can help me. Thanks in advance.


回答1:


Using the command you tried to start RFT I get the same error. I don't know what the rational_ft.exe is for, but it works when you don't call this but the java.exe with the class com.rational.test.ft.rational_ft:

"%IBM_RATIONAL_RFT_ECLIPSE_DIR%\jdk\jre\bin\java" -classpath "%IBM_RATIONAL_RFT_INSTALL_DIR%\rational_ft.jar" com.rational.test.ft.rational_ft -datastore C:\project -playback Test

See this IBM developerWorks article for more information.



来源:https://stackoverflow.com/questions/26468060/ibm-rft-command-line-execution-datastore-playback-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!