Marathon NameError: default

View: New views
2 Messages — Rating Filter:   Alert me  

Marathon NameError: default

by serdsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to use Marathon for testing a GUI and we had it working before. Now the test cases have changed, so I had to modularize the whole Marathon project into smaller ones. I created the new projects out of Marathon and I got the usual folder structure (Fixtures, Modules, TestCases) and the .project configuration file. I let Marathon create my default Fixture and its contents are just the same as the one before. When I create a new Test script out of Marathon (or from eclipse, or from a txt-tool) and I try to run it or to record with Marathon, I always get an Python error:

ScriptException: NameError: default

I use the standard method at the beginning of my test scripts: useFixture(default), and even if I let Marathon create it automatically, it still cannot recognize 'default', although it asks me to overwrite the existing file default.py, which tells me, the marathon.fixture.dir property is correctly set to %marathon.project.dir%/Fixtures.

I have absolutely no idea what is wrong here and if I can't fix it, I wont be able to use Marathon for any more testing.

Somebody has an idea?

Thx, Sergio

Re: Marathon NameError: default

by Dakshinamurthy Karra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please use Marathon help forum - I generally check it out frequently
and might be able to respond faster.

That said, when configuring a project you need to give the full path
to the class name (like x.y.z.ClassName) rather than just the main
class name. In 90% of the cases, that is the reason for this error
message.

HTH.

-- KD


On Thu, Feb 21, 2008 at 8:33 PM, serdsch <sergio.weigel@...> wrote:

>
>
>
>
>
>
>
>  I want to use Marathon for testing a GUI and we had it working before. Now
>  the test cases have changed, so I had to modularize the whole Marathon
>  project into smaller ones. I created the new projects out of Marathon and I
>  got the usual folder structure (Fixtures, Modules, TestCases) and the
>  .project configuration file. I let Marathon create my default Fixture and
>  its contents are just the same as the one before. When I create a new Test
>  script out of Marathon (or from eclipse, or from a txt-tool) and I try to
>  run it or to record with Marathon, I always get an Python error:
>
>  ScriptException: NameError: default
>
>  I use the standard method at the beginning of my test scripts:
>  useFixture(default), and even if I let Marathon create it automatically, it
>  still cannot recognize 'default', although it asks me to overwrite the
>  existing file default.py, which tells me, the marathon.fixture.dir property
>  is correctly set to %marathon.project.dir%/Fixtures.
>
>  I have absolutely no idea what is wrong here and if I can't fix it, I wont
>  be able to use Marathon for any more testing.
>
>  Somebody has an idea?
>
>  Thx, Sergio
>  --
>  View this message in context:
> http://www.nabble.com/Marathon-NameError%3A-default-tp15612875p15612875.html
>  Sent from the Java GUI Testing mailing list archive at Nabble.com.
>
>  



--
Dakshinamurthy Karra (http://blog.jaliansystems.com)