Results 1 to 4 of 4

Thread: Sencha test issues testing localhost app

  1. #1
    Sencha User
    Join Date
    Nov 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default Sencha test issues testing localhost app

    Hi,

    I am a new bee to the Sencha test and have trouble setting up/running the test cases against my local application. To give brief background, we have an application which is non ExtJs application.

    URL looks like – http://localhost:8180/xy/XCenter.do
    I am creating In-browser test cases

    I am trying to setup test cases against above URL but need some direction in using Parking lot Port, Proxy base port(not much information is provided in the documentation).

    I have set Parking lot port to 8000, Proxy base port to 8180 and created a new test scenario to record using Event Recorder. When I launch the Event Recorder first time after opening the studio, browser opens up with URL http://localhost:8180/xy/XCenter.do but nothing happens after that. Event Recorder in Sencha test hangs at Launching. In few cases I have observed the port number got updated to 8181/8182 and see cross origin frame issue and can’t proceed capturing any events.

    Error: Blocked a frame with origin "http://127.0.0.1:8181" from accessing a cross-origin frame. at onFramesetLoaded (ttp://127.0.0.1:8181/xy/XCenter.do?orionAgentId=1&orionRecording=true:60:29) at onload (http://127.0.0.1:8181/xy/XCenter.do?...ng=true:71:312)

    Any help in resolving issues is greatly appreciated. Thanks

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    156
    Answers
    16
    Vote Rating
    22
      0  

    Default

    I'd recommend leaving the Sencha Test ports at their defaults, i.e. 8800 for Parking lot, and 8700 for Proxy. It sounds like your Sencha Test ports are conflicting with your local web server's port (8180).

    Then, on your Scenario settings, set the Location (URL) of your app to http://localhost:8180/xy/XCenter.do.

    When you launch tests in the browser, or use the event recorder, you should then see a proxied version of your app launched in the browser.

    Hope that helps.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

  3. #3
    Sencha User
    Join Date
    Nov 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thanks Daniel, Appreciate your response. I update Sencha Test ports to default as you suggested, with scenario URL to http://localhost:8180/xy/XCenter.do

    Launching the event recorder opens up browser with URL http://127.0.0.1:8700/xy/XCenter.do?...Recording=true
    but getting cross-orgin frame issue

    Error: Blocked a frame with origin "http://127.0.0.1:8700" from accessing a cross-origin frame. at onFramesetLoaded (http://127.0.0.1:8700/xy/XolicyCenter.do?orionAgentId=1&orionRecording=true:60:29) at onload (http://127.0.0.1:8700/xy/XolicyCente...ng=true:71:312)

    Is there any way I can resolve the issue? Any extra setting required(proxy, reverse proxy on web service etc?)

    Thanks

  4. #4
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    156
    Answers
    16
    Vote Rating
    22
      0  

    Default

    Does the page you're loading contain frames/iframes? If so, this will cause problems, because In-Browser tests are designed to operate on single-page apps (no iframes or page navigation).

    I suspect if you have an iframe, the URL it's loading will differ from the Sencha Test proxied version of the app.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Similar Threads

  1. Testing outside of Sencha Test
    By niallobrien in forum Q&A
    Replies: 0
    Last Post: 21 Apr 2017, 1:36 AM
  2. Replies: 10
    Last Post: 6 Mar 2017, 7:41 AM
  3. Replies: 1
    Last Post: 20 Apr 2015, 11:54 AM
  4. sencha app build testing/production issues
    By gmenuet in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 13 Feb 2013, 6:51 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
  •