Comments (7)
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.
Thanks for the reply. I'll fiddle with it - thankfully changing the port fixes my immediate need. :/
from karma.
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.
@fcaballero do you have some specific question or are you just looking for a starting point?.
from karma.
You can find some documentation (still a work in progress) here
from karma.
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.
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)
- Critical vulnerability: Insufficient validation when decoding a Socket.IO packet HOT 10
- Karma cannot start Chrome version 108.0.5359.125 HOT 4
- Karma 6.4.1 Depends on "Vulnerable" `debug` Library HOT 1
- Seems like customContextFile, customClientContextFile options doesn't work
- Tests pass only in debug mode (with `--browsers=Chrome` flag)
- Cannot serve assets that don't fit its narrow view of acceptable types HOT 1
- Karma hangs when no browsers are passed
- Karma do not execute unit test if Automerge package (WebAssembly) is used HOT 3
- Compatibility with pnpm
- _karma_webpack_/scripts.js giving Uncaught Reference Error HOT 1
- Unable to require webpack config in karma.config.js
- failed to proxy simple files
- How to use with Typescript 5
- Is this project dead? HOT 5
- New Chrome version 113 driver fails to start HOT 1
- karma config not loading with angular 13
- the process of running cases is blocked since No binary for Chrome browser on your platform, but I have configured two browsers, one is available and one is missing.
- Latest packages are not working properly(lots of test cases shows error)
- Latest version of socket.io causes tests to fail on macOS HOT 1
- Getting timeout issue when executing code coverage from ADO pipeline multiple times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma.