Loading...

marathon-testing@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

[marathon-testing] Re: Can't Play Back Marathon Script Gea Tue Nov 02 18:00:47 2010

Hi Hari,

Sorry for responding late.

This is the error I get.

File "<string>", line 1, in ?
  File "C:\marathon-full-2.0b4\marathon-2.0b4\marathon-python.jar
\libpy/marathon/playback.py", line 25, in execTest
  File "C:\marathon-full-2.0b4\marathon-2.0b4\marathon-python.jar
\libpy/marathon/results.py", line 14, in callprotected
  File "C:\Marathon_Projects\TestCases\Menu.py", line 9, in test
  File "C:\marathon-full-2.0b4\marathon-2.0b4\marathon-python.jar
\libpy/marathon/playback.py", line 96, in click
        at
net.sourceforge.marathon.action.TestException.captureScreen(TestException.j­
ava:
48)


        at
net.sourceforge.marathon.component.ComponentFinder.getComponent(ComponentFi­
nder.java:
141)


        at
net.sourceforge.marathon.component.ComponentFinder.getComponent(ComponentFi­
nder.java:
117)


        at
net.sourceforge.marathon.action.ClickAction.play(ClickAction.java:
87)


        at
net.sourceforge.marathon.action.AbstractMarathonAction.playProtected(Abstra­
ctMarathonAction.java:
122)


        at net.sourceforge.marathon.player.Marathon.play(Marathon.java:
91)


        at
net.sourceforge.marathon.player.Marathon.click(Marathon.java:157)


        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)


        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)


        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)


        at java.lang.reflect.Method.invoke(Unknown Source)


java.lang.NullPointerException: java.lang.NullPointerException

Waiting for your recomendations..

Thanks
Gea

On Oct 22, 5:31 am, hari <[EMAIL PROTECTED]> wrote:
> Hi Gea ,
>
> What was the error message displayed in the output when you re-play
> the script ?
>
> On Oct 22, 12:35 am, Gea <[EMAIL PROTECTED]> wrote:
>
>
>
> > I can record fine my marathon script. However when playing back the
> > script does not run.
> > In specific my script has
>
> > if window('PASON EDR'):
> >      click('menu')
> > close()
>
> > It successfully goes through the first line of code
>
> > if window("PASON EDR")
>
> > but it never executes
>
> > click('menu').
>
> > It takes a while for my application to start.
>
> > I appreciate any help.
>
> > Thanks
> > Gea- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Marathon Java GUI Testing" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/marathon-testing?hl=en.