Setup of the parent suite failed,No keyword with name 'globalvariable' found.

3,012 views
Skip to first unread message

zhaoxu...@gmail.com

unread,
May 21, 2013, 6:49:55 AM5/21/13
to robotframe...@googlegroups.com
hi,
  there was a resource file with keyword named "globalvariable".No testcase can run successfully after I deleted the source file accidently. then I made up a simple test to open browser for google without using the keyword I deleted, and it failed again. when I press F5, I can still find this keyword.  I figure that it can be solved if i get the resource file back,but unfortunately i can't. So, it would be really appreciated if anyone knows what to do. 
Best regard
Jason


the output of the simple test:
============================================================================================================================================
Robot                                                                                                                                       
============================================================================================================================================
Robot.test                                                                                                                                  
============================================================================================================================================
openGoogle                                                                                                                               | FAIL |
Setup of the parent suite failed.
--------------------------------------------------------------------------------------------------------------------------------------------
Robot.test                                                                                                                          | FAIL |
Setup of the parent suite failed.

1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
============================================================================================================================================
Robot                                                                                                                               | FAIL |
Suite setup failed:
No keyword with name 'gobalvariable' found.

1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
Message has been deleted

Jason Zhao

unread,
May 21, 2013, 8:39:20 PM5/21/13
to robotframe...@googlegroups.com
Anyone,please?

Koyate, Sushant

unread,
May 21, 2013, 8:43:28 PM5/21/13
to zhaoxu...@gmail.com, robotframework-users
Can you please copy paste your code, you are trying to run.

Thanks.



On Tue, May 21, 2013 at 5:39 PM, Jason Zhao <zhaoxu...@gmail.com> wrote:
Anyone,please?

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jason Zhao

unread,
May 21, 2013, 8:48:30 PM5/21/13
to robotframe...@googlegroups.com, zhaoxu...@gmail.com
*** Settings ***
Library           Selenium2Library

*** Test Cases ***
openGoogle
    open browser    http://www.google.com    ff

On Wednesday, May 22, 2013 8:43:28 AM UTC+8, Aerofight wrote:
Can you please copy paste your code, you are trying to run.

Thanks.

On Tue, May 21, 2013 at 5:39 PM, Jason Zhao <zhaoxu...@gmail.com> wrote:
Anyone,please?

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Tatu Aalto

unread,
May 22, 2013, 3:06:21 AM5/22/13
to zhaoxu...@gmail.com, robotframe...@googlegroups.com
Ugh

When I run that test suite it works fine. How do you run the test suite? Do you use ride or command line, something else (what), what arguments you use? Also the the log.html could provide some additional information to solve the problem.

-Tatu
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

Jason Zhao

unread,
May 23, 2013, 3:57:38 AM5/23/13
to robotframe...@googlegroups.com, zhaoxu...@gmail.com
Thanks for your comment. I'd like to answer your question one by one.
1.I ran the test suite by pressing start button in ride.
2.I use ride
3.there wasn't any argument for I just wanted to test if a single test could run.
4.it was my fault not having posted the log.html in the beginning for it's lost after then.

Fortunately I solved this problem by myself, and unfortunately in very much stupid way-----I uninstalled the whole set including python,ride.etc,all of them. then I restarted the windows OS ,installed again.
I'm very much new to RF, and I know it has to do with my accidently deletion of the keyword. There must be some way to fix it instead of uninstallation and installation.
the lesson I learned from this accident that never and ever delete anything unless you're assured that it wouldn't turn into disaster.

Thanks,
Jason

Tatu Aalto

unread,
May 23, 2013, 4:56:48 AM5/23/13
to zhaoxu...@gmail.com, robotframe...@googlegroups.com
Ugh

If you did delete the file resource file when Ride was running, it could explain the odd behavior. I have also noticed that when files are deleted (which are visible in Ride), it is best practice:
1) Close Ride
2) Delete file(s)
3) Start Ride

But because you did delete the files accidentally, re-starting ride should be enough. Then you can see the keywords and variables that are not imported properly. There are several colors that indicate different things. Unfortunately, I could not find you a complete list, what different colors mean. Perhaps this could be a bug?

-Tatu
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

Jason Zhao

unread,
May 23, 2013, 8:45:04 PM5/23/13
to robotframe...@googlegroups.com, zhaoxu...@gmail.com
what you suggested may be an alternative solution,people facing the problem should give it a try.

by the way, re-starting ride seemed not enough for I tried already. and I couldn't find the list either, it should be considered a bug if no such list really exists.

Regards,
Jason

Kevin O.

unread,
May 24, 2013, 12:54:33 AM5/24/13
to robotframe...@googlegroups.com, zhaoxu...@gmail.com
I think what might have happened was you have a suite initialization file in the directory structure containing your suite that referenced the unresolvable keyword. Those files are named __init__.[txt,html,tsv]. They are detected and processed by RF automatically and might not be obvious that they are included when you run a test suite.
Regardless of the cause, if something like this happens in the future I would suggest performing a full text search on a directory using a tool like grep or what I use -- the find in files feature in Notepad++.
Tatu is referring to how RIDE colors the foreground text in a cell that contains unresolvable keywords as black.
You can see the meaning of the colors if you go to Tools > Preferences > Grid Colors And Font Size. Not shown there is the color for unresolvable variables.
Note that if you define ${UPPER} in a suite and use ${upper} in the test case, RIDE thinks this is unresolvable even when it is not.
RIDE is definitely a bit lacking in documentation, but it has not been a problem for our team. I think the RIDE wiki is editable by anyone, but I would be very careful before editing it.

Kevin

Reply all
Reply to author
Forward
0 new messages