2018 bis heute | 2017 2016 2015 2014 | 2013 | 2012

Mailingliste - Einträge 2012

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

Re: [QF-Test] Non-breaking space in version 3.2.2

  • Subject: Re: [QF-Test] Non-breaking space in version 3.2.2
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Sat, 20 Oct 2012 18:00:55 +0200

Hi Tiina,

the Jython versions differ between QF-Test 3.2.2 and 2.2.4.

I tried this with various QF-Test verions. QF-Test version 3.4 doesn't
have a problem with this.

The problem in QF-Test 3.2 appears to be the Jython output stream. All
the character manipulation works well, but as soon as you try to print
a string containing the non-break space you get the exception.

As a workaround I suggest that you use rc.logMessage instead of print.

Best regards,

Köngäs Tiina <Tiina.Kongas@?.fi> writes:

> Hi!
> I’m currently using QF-Test version 3.2.2. Earlier I have used version 2.2.4 and in that version I
> didn’t have this kind of problem.
> My SUT uses number values, which has thousand separators. In my test I need to fetch those values
> and make some checking or modification by Jython script.
> Used non-breaking space is “\u00a0”. If I’m trying to put value that contains that space to some
> variable in script (e.g. f= $(fff)) I will get the following error:
> SyntaxError: Lexical error at line 1, column 5.  Encountered: "\u00a0" (160), after : ""
> If I’m trying to put some value that contains the space inside script (e.g. tmp2= u"\u00a0" +
> tmp1), I will get the following error:
> UnicodeError: ascii encoding error: ordinal not in range(128)
> As I said these my examples has worked fine in older version, but now in this version something
> has changed.
> Can you please help me
> Br,
> Tiina Köngäs

Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833