javascript - Cat.js automation framework issue do get it running after installation -
dear stackoverfellows,
actually iam testing new framework cross device testing, name cat.js. relative new, didnt found answers on google. ask you.
consider code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>testcase1 cat.jazz</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!--script src="app.js"></script--> <!-- @[scrap @@import[ /cat/lib/cat.js ] ]@ --> </head> <body> <div id="catjsid0" onclick="this.style.color='red'; this.innerhtml+= '[i clicked!]'"> cat js hello caps lock!!!111 </div> <div id="catjsid1" onclick="this.style.color='blue'; this.innerhtml+= '[i clicked!]'"> cat js hello caps lock!!!111 </div> <div id="catjsid2" onclick="this.style.color='green'; this.innerhtml+= '[i clicked!]'"> cat js hello caps lock!!!111 </div> <div id="catjsid3" onclick="this.style.color='yellow'; this.innerhtml+= '[i clicked!]'"> cat js hello caps lock!!!111 </div> <!-- @[scrap @@name clickbtn0 @@context $ @@embed true @@log "button 0 clicked" @@assert ok($("#catjsid0"), "messagetext") @@code $("#catjsid0").click() ]@ --> <!-- @[scrap @@name clickbtn123 @@context $ @@embed true @@log "rest buttons clicked" @@assert ok($("#catjsid1"), "messagetext2") @@code $("#catjsid1").click() @@code $("#catjsid2").click() @@code $("#catjsid3").click() ]@ --> </body> </html>
when terminal line catcli -cabs
clearbuildserver , goto localhost:8089, cat.js layer, huge error too. terminal output is
[e629a0af-ab7b-4368-9238-0203c0e87077] ======== test start ======== [e629a0af-ab7b-4368-9238-0203c0e87077] ✖test generaljserror uncaught typeerror: cannot read property 'name' of undefined ;file: http://localhost:8089/cat/lib/cat.js ;line: 1243 ;column: 51 ;error: typeerror: cannot read property 'name' of undefined [e629a0af-ab7b-4368-9238-0203c0e87077] ✖test generaljserror uncaught syntaxerror: unexpected end of input ;file: http://localhost:8089/ ;line: 0 ;column: 0 ;error: syntaxerror: unexpected end of input
what makes me feel bad this, worked whole day on , had running intend. after installing mobilerunner.js suggestet test cross-device, broke. after creating complete new project couldnt solve problem. politly ask audience, of guys know error , solved it.
with best regards
Comments
Post a Comment