Hello,
At this moment i am evaluating Ranorex to use it in combination with a flex application.
To test my application i want to use Ranorexloader. This way i can use the production swf without modification.
My swf needs a parameter and is working in de following HTML context:
<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</head>
<embed flashvars="test=http://localhost/testplayer/content/xml/test.xml"
src="http://localhost/testplayer/testgenerator.swf"
width="550" height="400">
</embed>
</object>
</html>
I have minimised the HTML to the minimum code needed and i am aware that this is not the most elegant solution. But it works and is for testing purposes OK.
As you can see i use flashvars to pass a file (called http://localhost/testplayer/content/xml/test.xml) to the swf.
When i add the RanorexLoader to the html (see below) the application is not starting anymore.
<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</head>
<embed flashvars="test=http://localhost/testplayer/content/xml/test.xml"
src="http://localhost/testplayer/RanorexLoaderFlex4.swf?rxtarget=testgenerator.swf"
width="550" height="400">
</embed>
</object>
</html>
I have copied RanorexLoaderFlex4.swf to the directory http://localhost/testplayer/.
I can see that my application is started but it can not finish the setup because the content located in the file is not available. Probably because the flashvar is not passed to the swf.
Can you tell me whats going wrong in this situation?
Thanks in advance
Hans Ketelaars