• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

flexunit running swf from ant in browser error

New Here ,
Oct 19, 2010 Oct 19, 2010

Copy link to clipboard

Copied

I am folloing this post: http://forums.adobe.com/thread/633277?decorator=print&displayFullThread=true

and have the same need.  I would like to have ant pull up a browser and run the unit tests.

I am running

-flex 3.5

-flexunit: 4.1.0-RC1.27

<target name="run-flex-unit">

  <flexunit

      player="flash"

      workingDir=${dist.dir}

      toDir="${dist.dir}/reports"

      haltonfailure="false"

      verbose="true"

      localTrusted="true"

      swf="https://localhost:port/path/FlexUnitApplication.swf"

      command="C:\Program Files\Mozilla Firefox\firefox.exe">

   </flexunit>

</target>

When I run flexunit in ant during the "Validating task attributes..." phase it I get the following error:

"The provided 'swf' property value could not be found.

Based on the write up here: http://docs.flexunit.org/index.php?title=Ant_Task#Setup_your_environment  I think I have things set up correctly, but flexunit still doesn't seem to like the swf url vs a file location.  This thread seemed to suggest it was fixed in flexunit 4.1?

http://forums.adobe.com/thread/633277?decorator=print&displayFullThread=true

Any insight on this?

TOPICS
FlexUnit

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 19, 2010 Oct 19, 2010

Copy link to clipboard

Copied

@delaliD - Doh, no JIRA issue was ever created for this feature request, so it didn't make it into 4.1.  I'll have to look into how difficult this would be to support and talk to the team about putting it into RC2.  I'll let you know what I can find out.

-Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2010 Oct 19, 2010

Copy link to clipboard

Copied

Brian,

DOH!

Please keep me posted, we really need this feature.

Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 20, 2010 Oct 20, 2010

Copy link to clipboard

Copied

Brian,

In org.flexunit.ant.tasks.configuration.TaskConfiguration

Lines 123-126:

public void setSwf(String swf)
{
   testRunConfiguration.setSwf(project.resolveFile(swf));
}

Perhaps a check to see if the swf is a URL before calling project.resolveFile on it?

Since I have the command property set, the browser should try to open the url when loaded. No?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 20, 2010 Oct 20, 2010

Copy link to clipboard

Copied

@delaliD - Right now there are a lot of sub-componets in the task which use the location of the swf file to generate files.  Additionally, work will have to be put into making sure LocalTrust isn't generated since it's connecting over the network; we'll also have to validate that ADL doesn't use URLs due to the the app descriptor.  I was thinking of a Swf class type that could tell me if it was a URL or a File and then making the sub-components sensitive to the new interface.

On a separate note, if I can get the fix in by this weekend, it will go out with RC2, but it's a pretty swamped week and weekend, so I'm unsure.  I'll keep this thread updated with my progress.

-Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2010 Oct 28, 2010

Copy link to clipboard

Copied

Brian,

Not sure if you were able to get to this?

In any case, I did want to confirm that a JIRA ticket was created this time?  Any ETA on this fearure?

Delali

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 28, 2010 Oct 28, 2010

Copy link to clipboard

Copied

@delaliD - Unfortunately, I'm still swamped.  No ETA and no-one has created a ticket in JIRA from what I can tell.  Could you throw one out there?

-Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2010 Oct 28, 2010

Copy link to clipboard

Copied

sure...what's the link to your jira?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 29, 2010 Oct 29, 2010

Copy link to clipboard

Copied

You can find the link to JIRA on the Resources wiki page @ http://docs.flexunit.org/index.php?title=Resources.  The direct link is https://bugs.adobe.com/jira/browse/fxu.

-Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 12, 2010 Nov 12, 2010

Copy link to clipboard

Copied

LATEST

FYI, here is the JIRA issue ticket: https://bugs.adobe.com/jira/browse/FXU-142

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines