Git Product home page Git Product logo

Comments (7)

vojtajina avatar vojtajina commented on May 10, 2024

This is weird. If there was something else on 8080 port, Testacular would use the next one. No idea, what's behind this issue.

From your log, it's obvious, that it does establish websocket connection, but immediately disconnects (even before Phantom sends its name), not sure why.

When capturing PhantomJS, Testacular creates a file, with one line JS, to open the url and then, starts phantomjs, passing this file:
https://github.com/vojtajina/testacular/blob/master/lib/launchers/PhantomJS.js#L9

You can try fiddling with it. Eg. start it manually...

from karma.

marknadig avatar marknadig commented on May 10, 2024

Thanks for the reply. I'll fiddle with it - thankfully changing the port fixes my immediate need. :/

from karma.

fcaballero avatar fcaballero commented on May 10, 2024

Hi guys, I would like to know if you know some tutorial about how to integrate testacular and phantomJS, I've been trying to find something out...but I dont get nothing :/ a little help would come fine, thank you!

from karma.

dignifiedquire avatar dignifiedquire commented on May 10, 2024

@fcaballero do you have some specific question or are you just looking for a starting point?.

from karma.

dignifiedquire avatar dignifiedquire commented on May 10, 2024

You can find some documentation (still a work in progress) here

from karma.

fcaballero avatar fcaballero commented on May 10, 2024

actually I'm triyng to test a log in page, I mean when the log in is successful then the user is redirected to another page, I was triyng to extend the scenario dsl, but my test fail, it always says "Uncaught TypeError: Cannot read property 'name' of null at http://localhost:9876/adapter/angular-scenario.js?1350299619000:28", I mean I just wanna know when the page is loaded without use the sleep function.. Is there a way to do it?? I was triying this solution https://groups.google.com/forum/#!msg/angular/Ju-OSlDbrxA/F1xCyNB3SdsJ but it doesn't work neither.

well if there is a strating point how integrate testacular with phantomJS, I may find out a way to do what I want...

thanks and regards :)

from karma.

vojtajina avatar vojtajina commented on May 10, 2024

In general, running PhantomJS should be the same as any other browser, I don't think your problem is related to PhantomJS at all.

You need to create a dsl, that would assert, whether the correct page has been loaded (after the login). As long as you use the addFuture(), it will wait for all pending xhr's etc.

It might get more complicated if you do full page reload. In any case, share what you have.

from karma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.