ebrehault / resurrectio

CasperJS test recorder Chrome extension
GNU General Public License v2.0
721 stars 106 forks source link

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

Closed garlandkr closed 10 years ago

garlandkr commented 10 years ago

I ran casperjs test exported_from_resurrectio.js

Using CasperJS 1.1.0-beta3, PhantomJS 1.9.6

ebrehault commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

garlandkr commented 10 years ago

https://gist.github.com/garlandkr/8635512

ebrehault commented 10 years ago

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 commented 10 years ago

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.