rsrini7 / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

Rceording Agent disappear when testing thru URL #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a Flex project(say FlexMonkeyUI).
2.  Keep the FlexmonkeyUI.swc in Lib folder of Project.
3.  Go to project properties -> Flex compiler -> Additional compiler 
argument

-include-libraries "C:/Program Files/Adobe/Flex Builder 
3/sdks/3.0.0/frameworks/libs/automation_agent.swc" "C:/Program 
Files/Adobe/Flex Builder 
3/sdks/3.0.0/frameworks/libs/automation.swc" "C:/Documents and 
Settings/user/My Documents/Flex Builder 
3/FlexMonkeyUI/libs/FlexMonkeyUI.swc"

4.  Under src folder -> Create an mxml application (say Launch.mxml)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
creationComplete="loadIndex()">
<mx:Script>
    <![CDATA[
       public function loadIndex():void
       {
         var url:URLRequest = new URLRequest("http://www.google.co.in/");
         navigateToURL(url, "_top");
       } 

      ]]>
</mx:Script>
      </mx:Application>
5.  Running the application Launch.mxml. Its showing the recording 
agent and then google screen comes and recording agent goes away.

What is the expected output? What do you see instead?
We should see any web application and recording Agent.

What version of the product are you using? On what operating system?
FlexMonkey.0.5

Please provide any additional information below.

Original issue reported on code.google.com by meenu.mp...@gmail.com on 18 Dec 2008 at 7:54

GoogleCodeExporter commented 9 years ago
If we're understanding you correctly, you're loading a new page which would of 
course
unload any app that was running on the previous page. You cannot use a single
FlexMonkey instance across multiple SWF loads.

Original comment by stuinbou...@gmail.com on 14 Jan 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Stu, we have a similar situation in our application. We have a Login mxml (swf) 
which
redirects to the app main mxml (different swf) after successful login using
(navigateToURL(new URLRequest(loginResult.substr(URL:)),_top);). How do we 
handle
this? We tried using FlexMonkeyLauncher and compile time as well (built 
flexmonkey
swc with both login & app swf's) but didn't work.

Original comment by murali.o...@gmail.com on 15 Jan 2009 at 6:47