Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OpenScript ActionScript Error from Adobe Flash Player 9

I get a popup ActionScript Error from Adobe Flash Player 9 when trying to record a Flex Tree object using OpenScript 9.2.1.0 Production. Specifically, I click on the Triangle that opens/closes the view of the child nodes underneath the parent node of a Tree. Initially, the triangle arrow already pointing down and the child node is already showing. When I click on the triangle, the node underneath goes up and disappears under its parent node and the traingle is then pointing to the parent node.

When I click this triangle in Firefox without OpenScript recording, I don't get any errors, popups, or issues. It seems to work correctly. During OpenScript recording, the recording seems to crash with a popup that is titled "Adobe Flash Player 9" and has the text "An ActionScript error has occurred" with the following error message:

Error: Unable to find automation method 'mx.events.TreeEvent' for class '[object OSAutomationClass]'.
at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1680]
at mx.automation.delegates.core::UIComponentAutomationImpl/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\UIComponentAutomationImpl.as:281]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::dispatchTreeEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:3334]
at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:2193]
at mx.effects::Tween/endTween()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:524]
at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:565]
at mx.effects::Tween$/timerHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:179]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

I can click "Dismiss All" from the Adobe popup and Firefox isn't affected. Openscript doesn't appear to have any issues and the recording can be continued or stopped. It records the click on the tree and the "Dismiss All" from the popup both as "Click object("@id='main'") as type "web" instead of "flexFT".

I am using OATS 9.2.1.0 with Firefox 3.6.17. I am testing a Flex 3.3 SDK built application. I installed the Adobe Flash Player 9 that came with the Flex SDK 3.3 before installing OATS.

Any help on this issue is greatly appreciated.


Some other information that may prove to be useful: I cannot seem to get OpenScript to consistently play back the actions on the same tree described above. Sometimes it works and sometimes it does not. I've tried using "Select Tree", "Select List", and "Click Tree" and each one is inconsistent on playback. It will report "Target Not Found".

I have the console output for a "Target Not Found" failure below, where line 100 is ".select("GRID1>server1", TriggerEvent.Mouse," from the following Java generated on recording with OpenScript:

flexFT
.list(
15,
"/web:window[@index='0' or @title='My Title']/web:document[@index='0']/flex:application[@automationIndex='index:-1' and @label='' and @className='main' and @automationName='main' and @automationClassName='FlexApplication' and @id='main']/flex:canvas[@automationIndex='index:1' and @label='' and @className='mx.containers.Canvas' and @automationName='mainCanvas' and @automationClassName='FlexCanvas' and @id='mainCanvas']/flex:dividedBox[@automationIndex='index:16' and @label='' and @className='view.MainMediator' and @automationName='mediator' and @automationClassName='FlexDividedBox' and @id='mediator']/flex:accordion[@label='' and @automationName='index:0' and @id='null' and @automationIndex='index:0' and @className='mx.containers.Accordion' and @automationClassName='FlexAccordion']/flex:canvas[@automationIndex='index:1' and @label='My%20View2' and @className='view.my.MyNavigator' and @automationName='My%20View2' and @automationClassName='FlexCanvas' and @id='null']/flex:canvas[@label='' and @automationName='index:1' and @id='null' and @automationIndex='index:1' and @className='mx.containers.Canvas' and @automationClassName='FlexCanvas']/flex:list[@automationIndex='index:2' and @className='view.MyGridTree' and @automationName='index:2' and @automationClassName='FlexList' and @id='null']")
.select("GRID1>server1", TriggerEvent.Mouse,
KeyModifier.None);
{
think(1.0);
}

Console Output:

11:29:09,093 INFO [EntryPoint] Started with arguments: -port 7777 -jwg C:\OracleATS\OFT\test06_ff\test06_ff.jwg
11:29:09,250 INFO [EntryPoint] Received StartScriptEvent
11:29:09,250 INFO [EntryPoint] Running "test06_ff" ...
11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.flexFT.api.FlexFTService"
11:29:09,484 INFO [1] Initializing VU 1 for script test06_ff
11:29:21,546 INFO [1] Step: [1] Redirect (/Page1/)
11:29:21,718 INFO [1] Step: [2] Login Page (/main.html)
11:29:32,218 INFO [1] Step: [3] My Title (/main.html)
11:30:11,453 ERROR [1] Error in section Run at line (script.java:100). Target not found
oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
at script.run(script.java:100)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
at java.lang.Thread.run(Thread.java:619)
11:30:11,453 ERROR [1] Iteration 1 failed at line (script.java:100). Target not found
oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
at script.run(script.java:100)
at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
at java.lang.Thread.run(Thread.java:619)
11:30:12,468 INFO [1] Finished VU 1 for script test06_ff

Thanks,
John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2011
Added on Apr 29 2011
0 comments
549 views