Results 1 to 4 of 4

Thread: Viewing screenshot comparisons in Sencha Test

    You found a bug! We've classified it as ORION-2466 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Jan 2009
    Posts
    470

    Default Viewing screenshot comparisons in Sencha Test

    I recently downloaded a trial of Sencha Test and have been going through the docs. I've gotten everything to work so far except for one issue. I tried the screenshot comparison functionality. I can see in the archive server where it generated the baseline image, a new image, and a diff image. This looks great. However, when I try to view the archived results in Sencha Test, there is a broken image icon where the comparison image should be. The archives for the tests themselves as far as passing etc are viewable, it's just the image that's missing. The tests succeed or fail properly based on the image changing, it's just viewing the image from the failed test.

    Is this a known issue with the current version or is it possible I have some configuration wrong?

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    354

    Default

    We've seen one other report of this issue, but haven't been able to replicate it.

    I'll send you a private message to request some further details from you.

    Thanks.
    Daniel Gallo
    Sales Engineer
    Sencha

  3. #3
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    354

    Default

    It looks like you're running in to a file path length limitation on Windows. When Sencha Studio retrieves a resultset from an Archive Server instance, it downloads the zip for the requested run, and extracts its contents (including the screenshot files) locally for subsequent display in Sencha Studio.

    In the example you sent me, one of the screenshots would attempt to be loaded via this file URL:

    Code:
    file://C:/Users/ADMINI~1/AppData/Local/Temp/2/Sencha-Studio/session-d5885810-1520-11e9-96ca-576341b3b58d/2019.0.10.13.45.4/775d74e0-14f4-11e9-a0a8-e93e0f778219/Applications/ExtJasmine/New-Scenario-1/MyPanelSpec2.js/When-MyPanel-is-Rendered/chrome71windows-TestPanel-diff.png
    The length of this path exceeds the limit on Windows, which is 260 characters.

    I have logged this as an issue for us to investigate further.

    For now, one way to try and work around the issue is to shorten your scenario names, test suite names, and spec names, as they're incorporated in to the overall folder structure.

    You can also tell Sencha Studio to extract the resultset in a location that's not within your user directory, so as to shorten the overall path length slightly.

    This can be done as follows:

    1. Create a new folder "C:\tmp"
    2. In Sencha Studio, go to Preferences (cog/gear icon in top-right corner)
    3. Under the "Test" tab, check the option labeled "Save archived test results"
    4. Set the path to "C:\tmp"
    5. Restart Sencha Studio

    Then try viewing the screenshot comparison results again. The earlier screenshot path will now be slightly shorter:

    Code:
    file://C:/tmp/local_tests_area/Applications/ExtJasmine/775d74e0-14f4-11e9-a0a8-e93e0f778219/Applications/ExtJasmine/New-Scenario-1/MyPanelSpec2.js/When-MyPanel-is-Rendered/chrome71windows-TestPanel-diff.png
    Daniel Gallo
    Sales Engineer
    Sencha

  4. #4
    Sencha Premium User
    Join Date
    Jan 2009
    Posts
    470

    Default

    Thanks for the fast reply! The workaround with changing the "Save archived test results" path works well for me.

Similar Threads

  1. Replies: 1
    Last Post: 3 Feb 2017, 8:59 AM
  2. Replies: 1
    Last Post: 2 Feb 2017, 12:08 PM
  3. Replies: 5
    Last Post: 2 Feb 2017, 8:42 AM
  4. Replies: 1
    Last Post: 9 Aug 2016, 3:46 AM
  5. Replies: 2
    Last Post: 4 Aug 2016, 4:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •