I'm getting the following when attempting to run a script via the command line:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Unhandled exception in rational_ft: com.rational.test.ft.services.LogException:
Failed to start TSS services [TestManager login might have been cancelled]. Can not do TSS logging.
com.rational.test.ft.services.LogException: Failed to start TSS services [TestManager login might have been cancelled]. Can not do TSS logging.
at com.rational.test.ft.services.TestScriptServicesLo g.open(Unknown Source)
at com.rational.test.ft.application.ScriptPlayback.op enMessageLog(Unknown Source)
at com.rational.test.ft.application.ScriptPlayback.ru n(Unknown Source)
at com.rational.test.ft.rational_ft.run(Unknown Source)
at com.rational.test.ft.rational_ft.main(Unknown Source) </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Can anyone help me work around this? The command being executed (via a batch script) is:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
java -DXDETester.install.dir="C:\Program Files\Rational\XDETester\eclipse\plugins\com.ratio nal.test.ft.wswplugin_2.0.0" -cp "C:\Program
Files\Rational\XDETester\eclipse\plugins\com.ratio nal.test.ft.wswplugin_2.0.0\rational_ft.jar"; "C:\Program
Files\Rational\XDETester\eclipse\plugins\com.ratio nal.test.ft.wswplugin_2.0.0\rational_ft_bootstrap. jar";"C:\Program
Files\Rational\XDETester\eclipse\plugins\com.ratio nal.test.ft.wswplugin_2.0.0\xerces.jar";" ;C:\Program Files\Rational\Rational
Test\rttssjava.jar" com.rational.test.ft.rational_ft -datastore "C:\QA\XDE" -playback SelfTest
</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">I've googled around the web, the docs and this forum looking for any pointers. The only one I can see that's stopping me is this post, stating that you need Test Manager to do this. I don't have Test Manager and I don't intend on licensing it on any of our hosts as I've written my own tool to do the same cross-host testing that runs on any Java enabled platform, unlike Test Manager.
The post begins with "as far as I'm aware", which is my one ray of sunshine at the moment. Can anyone confirm or deny whether Test Manager is a pre-requisite for the command-line interface? Has anyone managed to get the command-line interface to work, with or without Test Manager?
I'm not even needing to use Rationals (frankly rubbish) logging, as I've written my own system, so logging errors are not what I want to see!! I keep the Rational logs for reference, but I fail to see the point in logs that only log errors and verification points...what's the point in that? [img]images/icons/rolleyes.gif[/img]
Re: Command-line mode?
You need to set the -rt.log_format parameter. It should NOT be set to "TestManager" but alas, I don't have the other setting handy. You should find it in the .ft class help text. Look for something about html format.
A quick query pulls back:
[ 07-20-2004, 01:18 PM: Message edited by: cupal ]
Re: Command-line mode?
Hmm, very interesting, thanks cupal. I had actually tried the log_format parameter before HOWEVER this time I put it at the start of the command string, which worked!! It seems the order of these is important, something to watch out for.
Of course, it's not working yet...getting another error now, stuff to do with my harness that works fine normally. Ah, the joys of computing...