[Webtest] [webtest][JIRA] Created: (WT-297) Getting [sleep] java.lang.NullPointerException

michal (JIRA) michal (JIRA)" <noreply@canoo.com
Sun, 1 Apr 2007 21:07:28 +0200 (CEST)


Getting [sleep] java.lang.NullPointerException
----------------------------------------------

         Key: WT-297
         URL: http://webtest-community.canoo.com/jira/browse/WT-297
     Project: WebTest
        Type: Bug

    Versions: 2.1    
 Environment: Linux hostname 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia32142ifx-20060209 (SR4-1) (JIT enabled: jitc))

    Reporter: michal


I'm getting java.langNullPointerException for these test steps.

                                <setSelectField
                                        description="Select offering typ"
                                        htmlid="fOfferingType"
                                        text="Application Support"
                                />
                                <sleep description="12s pause" seconds="12" />
                                <setSelectField
                                        description="Select offering subtype"
                                        htmlid="fOfferingSubtype"
                                        value="Other"
                                />

fOfferingSubtype should be reloaded when fOfferingType is changed (using AJAX) which still doesn't work, but I'm getting exception from sleep.

[setSelectField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSelectField "Select offering typ" (13/15)
    [sleep] java.lang.NullPointerException
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.OptionsArray.get(OptionsArray.java:102)
    [sleep]     at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1343)
    [sleep]     at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1304)
    [sleep]     at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1288)
    [sleep]     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java(Compiled Code))
    [sleep]     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
    [sleep]     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
    [sleep]     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:151)
    [sleep]     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
    [sleep]     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:363)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.setState(XMLHttpRequest.java:145)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.doSend(XMLHttpRequest.java:375)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest.access$000(XMLHttpRequest.java:72)
    [sleep]     at com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest$1.run(XMLHttpRequest.java:328)
    [sleep]     at java.lang.Thread.run(Thread.java:570)
    [sleep]     at com.gargoylesoftware.htmlunit.ThreadManager$1.run(ThreadManager.java:118)
[setSelectField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSelectField "Select offering subtype" (15/15)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira