Phantomjs does not load <script> when calling test runner #12015

Closed
xenaree opened this Issue Feb 27, 2014 · 1 comment

Projects

None yet

2 participants

@xenaree

Hello,

I have a test-runner.html which contains a couple of jasmine tests and in which i included in the head:

<script type="text/javascript"
    src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
    id="sap-ui-bootstrap"
    data-sap-ui-libs="sap.ui.commons"
    data-sap-ui-theme="sap_bluecrystal">

</script> 

The test-runner.html runs the jasmine tests successfully in the browser (2tests/0fails)
BUT during a maven build, i get the error:

[INFO] --- exec-maven-plugin:1.2.1:exec (PhantomJS Unit Testing) @ sig ---
ReferenceError: Can't find variable: sap

The variable 'sap' should come from the js i included in the script
The problem is that when the "phantomjs.exe phantomjs_jasminexml_runner.js test-runner.html" is executed, the test-runner.html does not load the

src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js".

Best regards,
Kais.

@ariya
Owner

Please create a self-contained reduced test case as we can't troubleshoot your test.

@ariya ariya closed this Mar 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment