Problem with function call

132 views
Skip to first unread message

anfritsc

unread,
Dec 16, 2011, 10:28:29 AM12/16/11
to robotframework-users
Hi,

I'm using RF 2.6.3 for java.

I have my own test library with a method called "CallHistoryIsEmptyOf"
But when i'm calling it in a TestCase, RF return the following error
message :

"Evaluating condition 'call history is empty of' failed: SyntaxError:
mismatched input 'history' expecting EOF (<string>, line 1)"

it's the only method which i set problems.

Do you have an idea ?

Thank you for your support.
Anthony

Janne Härkönen

unread,
Dec 18, 2011, 4:32:59 AM12/18/11
to anthony...@gmail.com, robotframework-users
Hello anfritsc

On Fri, Dec 16, 2011 at 5:28 PM, anfritsc <anthony...@gmail.com> wrote:
> I have my own test library with a method called "CallHistoryIsEmptyOf"
> But when i'm calling it in a TestCase, RF return the following error
> message :
>
> "Evaluating condition 'call history is empty of' failed: SyntaxError:
> mismatched input 'history' expecting EOF (<string>, line 1)"
>

Can you attach the line of your test case with this keyword call? I
think there's a syntax error happening before the keyword is called.

thanks,
--J

--
Janne Härkönen | http://reaktor.fi
http://twitter.com/#!/janneharkonen

anfritsc

unread,
Dec 20, 2011, 3:48:06 AM12/20/11
to robotframework-users
Hello Janne,

Thank you for your answer and sorry for the time i've taken to answer.
Indeed it was a syntax error before the keyword is called.

That's what i have wrote : Should Be True call history is empty of $
{user2}

I want to check that the keyword returns true, but my syntax is wrong.

So now i'm using a temporary variable to store what my keyword
returns, and i'm using Should Be True on this variable :

${var}= call history is empty of $ {user2}
Should Be True ${var}

Bye,
Anthony

On 18 déc, 10:32, Janne Härkönen <janne.t.harko...@gmail.com> wrote:
> Hello  anfritsc
>

Reply all
Reply to author
Forward
0 new messages