<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: OPA Test: headless run error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaa-p/573049#M128268</link>
    <description>&lt;P&gt;how you get the coverage report when you run headless? is is possible to share your code for grunt tasks for qunit and opa?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 20:22:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-02-27T20:22:39Z</dc:date>
    <item>
      <title>OPA Test: headless run error</title>
      <link>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaq-p/573047</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I have some OPA tests, wich are successful if I run them manually in the browser, but fail (some of them) if I run them using a Grunt task and without a browser (headless).&lt;/P&gt;
  &lt;P&gt;Any idea what the problem could be? Any help would be appreciated!&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/98367-opa-error.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Szilamér &lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaq-p/573047</guid>
      <dc:creator>xyla</dc:creator>
      <dc:date>2017-12-11T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: OPA Test: headless run error</title>
      <link>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaa-p/573048#M128267</link>
      <description>&lt;P&gt;The problem was that the OPA tests were made on elements which were dynamic. These elements are rendered only if the browser window is bigger than a certain size. &lt;/P&gt;
  &lt;P&gt;So the solution is to set a fixed screen size for PhantomJS in the gruntfile, qunit section (page-&amp;gt;viewportSize):&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;qunit: {
            options: {
                '--web-security': 'no', // yes/no
                '--proxy': 'xxxxxx', //your proxy - if you have one
            },
            opa: {
               options: {
                page : {
                    viewportSize : { width: 1920, height: 1080 }
                },
                    urls: [
                        "http://&amp;lt;%= settings.connect.host %&amp;gt;:&amp;lt;%= settings.connect.port %&amp;gt;/test/integration/opaTests.qunit.html"
                    ],
                    // same as qunits timeout 90 seconds since opa test might take a while
                    timeout: "&amp;lt;%= tests.opaTimeout %&amp;gt;"
                }
            },

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 15:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaa-p/573048#M128267</guid>
      <dc:creator>xyla</dc:creator>
      <dc:date>2017-12-11T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: OPA Test: headless run error</title>
      <link>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaa-p/573049#M128268</link>
      <description>&lt;P&gt;how you get the coverage report when you run headless? is is possible to share your code for grunt tasks for qunit and opa?&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/opa-test-headless-run-error/qaa-p/573049#M128268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-27T20:22:39Z</dc:date>
    </item>
  </channel>
</rss>

