Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal: you can't override the preconfigured casper instance in a test environment. #11

Closed
garlandkr opened this issue Jan 26, 2014 · 6 comments

Comments

@garlandkr
Copy link

I ran casperjs test exported_from_resurrectio.js

Using CasperJS 1.1.0-beta3, PhantomJS 1.9.6

@ebrehault
Copy link
Owner

which version of Resurrectio are you using ? the one from the Chrome store only work with the stabme version of Casper (1.0).
If you want to use Capser 1.1 beta, you need to use the master branch from the resurrectio repository.

@garlandkr
Copy link
Author

Thank you, I have now installed the latest master branch. Now I get this error:

Test file: test.js                                                    
SyntaxError: Parse error                                                        
FAIL SyntaxError: Parse error
#    type: error
#    file: test.js
#    subject: false
#    error: "SyntaxError: Parse error"
#    stack: 
FAIL 1 test executed in 0.022s, 0 passed, 1 failed, 0 dubious, 0 skipped.       

Details for the 1 failed test:

In test.js
  Untitled suite in test.js
    error: SyntaxError: Parse error

@ebrehault
Copy link
Owner

could you post your test on https://gist.github.com/ so I can have a look ?

@garlandkr
Copy link
Author

@ebrehault
Copy link
Owner

As you can see, the test generation contains an error:
"ERROR: the recorded sequence does not start with a url openning."

Apparently something got wrong when you have recorded your test sequence, and Resurrectio didn't get the starting url.

Just record it again, and it should work.

@garlandkr
Copy link
Author

Thanks, I had to quit Chrome and re-open for it to start working. Maybe that is from my changing extension versions? I'll close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants