Quantcast

External script in Testrunner build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

External script in Testrunner build

Josep Torres
Hi all,

I am trying to add an external script to the Testrunner application.
When I add it to the source version everything is fine, but when I add it to the build version then I am not able to load the testrunner application.

Those are the important bits of my config.json
"testrunner::source-tests-script":
    {
      "add-script": [{"uri":"../script/util.js"}]
    },
    "testrunner::build-tests-script":
    {
      "add-script": [{"uri":"../script/util.js"}]
    }


When I load the source application under test/index-source.html everything works fine, the script is loaded and all the functions inside are found.
However when I load the build version I have an error message and the testrunner application is not able to load the test.

The alert dialog says:
The test suite couldn't be loaded. Make sure the AUT URI is correct, e.g. /html/tests.html

Also check the testclass parameter this should be .... according to current config

And the testrunner application does not load test classes.

Best Regards.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: External script in Testrunner build

thron7
I believe you also have to make sure the script is copied to the build folder. Try adding the following key to your config:

"testrunner::build-tests-files" : {
    "copy-files" :
  {
        "files"     : [ "script/util.js" ]
    }
}

Hope this helps,
T.


On Wed, Jan 20, 2016 at 8:12 AM, Josep Torres <[hidden email]> wrote:
Hi all,

I am trying to add an external script to the Testrunner application.
When I add it to the source version everything is fine, but when I add it to the build version then I am not able to load the testrunner application.

Those are the important bits of my config.json
"testrunner::source-tests-script":
    {
      "add-script": [{"uri":"../script/util.js"}]
    },
    "testrunner::build-tests-script":
    {
      "add-script": [{"uri":"../script/util.js"}]
    }


When I load the source application under test/index-source.html everything works fine, the script is loaded and all the functions inside are found.
However when I load the build version I have an error message and the testrunner application is not able to load the test.

The alert dialog says:
The test suite couldn't be loaded. Make sure the AUT URI is correct, e.g. /html/tests.html

Also check the testclass parameter this should be .... according to current config

And the testrunner application does not load test classes.

Best Regards.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Loading...