Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Printing and logging HTML text in a variable does not work


  • Subject: [QF-Test] Printing and logging HTML text in a variable does not work
  • From: Hans Schwaebli <hans_schwaebli@?.com>
  • Date: Wed, 16 May 2007 07:41:37 -0700 (PDT)

I fetch text from a dialog and put it in a variable.
 
The text is:
 
<html>
  <head>
   
  </head>
  <body>
    ComJCoffee-ERR-BASE-002161<br><br>Bei der &#220;berpr&#252;fung des Datenobjektes
    &quot;Auftragsposition '10030' '17' '49300493' 'Schuhe'&quot; traten folgende
    Abweichungen auf:<br>
    <table cellpadding="3" align="left" valign="top">
      <tr>
        <td>
          Lieferwoche
        </td>
        <td>
          Eingegebene Woche darf nicht in der Vergangenheit liegen.
        </td>
      </tr>
    </table>
  </body>
</html>
When I want to print the text (or log it), QF Test says:
 
de.qfs.apps.qftest.shared.exceptions.ScriptException: The script failed with the following message:
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "U:\projects\HSW_GUI-TEST\tools\qftest\qftest-2.0.2-p1\jython\Lib\qfclient.py", line 90, in runscript
  File "U:\projects\HSW_GUI-TEST\tools\qftest\qftest-2.0.2-p1\jython\Lib\qfcommon.py", line 357, in runscript
  File "C:\Dokumente und Einstellungen\hkg493.HKG\.qftest\_script7878.py", line 1
 print "<html>
              ^
SyntaxError: Lexical error at line 1, column 14.  Encountered: "\n" (10), after : ""
 at de.qfs.apps.qftest.client.awt.am.a(SourceFile:1250)
 at de.qfs.apps.qftest.client.J.a(SourceFile:1191)
 at de.qfs.apps.qftest.client.b.run(SourceFile:108)
 at java.security.AccessController.doPrivileged(Native Method)
 at de.qfs.apps.qftest.client.T.run(SourceFile:72)
 at de.qfs.lib.util.ThreadPool$PoolThread.run(ThreadPool.java:527)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
 at de.qfs.apps.qftest.shared.rmi.sut.RemotePlaybackImplBase_Stub.runScript(Unknown Source)
 at de.qfs.apps.qftest.run.l.runScript(SourceFile:999)
 at de.qfs.apps.qftest.step.ClientScriptStep.exec(SourceFile:225)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.TryStep.exec(SourceFile:251)
 at de.qfs.apps.qftest.step.TryStep.exec(SourceFile:198)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.step.BasicSequence.exec(SourceFile:725)
 at de.qfs.apps.qftest.step.BasicSequence.exec(SourceFile:677)
 at de.qfs.apps.qftest.step.Procedure.exec(SourceFile:198)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.run.AbstractRunContext.callProcedure(SourceFile:2258)
 at de.qfs.apps.qftest.run.AbstractRunContext.callProcedure(SourceFile:2156)
 at de.qfs.apps.qftest.step.ProcedureCall.exec(SourceFile:445)
 at de.qfs.apps.qftest.run.AbstractRunContext.call(SourceFile:1265)
 at de.qfs.apps.qftest.run.AbstractRunContext.run(SourceFile:909)
 at de.qfs.apps.qftest.run.AbstractRunContext.run(SourceFile:838)
 at de.qfs.apps.qftest.run.I.run(SourceFile:6717)
What is wrong?


Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
Videos Downloads Documentation Buy Free Trial