News for hackers. Stuff that matters.
Re:SodaJS, functional web testing in NodeJS by tjholowaychuk on Thursday September 16, 2010 @03:19PM (#1698809)
The video is an automated recording via Saucelabs. Selenium RC / Soda allow you to automate acceptance testing, paired up with Saucelabs allows you to do so across a matrix of operating systems, browsers, and browser versions completely automated using the Soda client (along with the selenium IDE if you choose) to write your tests.
Re:SodaJS, functional web testing in NodeJS by carson on Thursday September 16, 2010 @02:56PM (#1698736)
While all the work to bring things to Javascript is nice I'm not sure that everything needs to be wrapped in Javascript. I guess someone could argue that people who do web design know Javascript so this would let them create tests easier but do most people write these tests by hand or use IDEs to record them?
Re:SodaJS, functional web testing in NodeJS by icey on Thursday September 16, 2010 @04:18PM (#1699011)
What's the harm in having tools written in Javascript? Now that it's getting used on the server more often, it's nice to be able to use the same language everywhere.
Re:SodaJS, functional web testing in NodeJS by Vekz on Thursday September 16, 2010 @04:27PM (#1699041)
Stating from experience. The IDEs tend to be inaccurate. They can provide a good skeleton for a test suite. But they have a hard time recording interatction with modals, animations, or facebook connect elements. Using an IDE you will find yourself returning to the generated code and hand coding other interactions.
Re:SodaJS, functional web testing in NodeJS by endtime on Thursday September 16, 2010 @02:27PM (#1698655)
I know it's not exactly the intended use, but does this allow one to effectively run a headless browser with JS from a server with Node installed? (Right now I'm generating server-side snapshots of Raphael.JS drawings with wkhtmltoimage, but I'd much rather get the actual SVG and run it through Inkscape.)
Re:SodaJS, functional web testing in NodeJS by wccrawford on Thursday September 16, 2010 @02:33PM (#1698679)
From the video, it appears to run a standard browser and pretend to be a person, and creates a video from it. Or something. Seems kind of odd.
Re:SodaJS, functional web testing in NodeJS by hugs on Thursday September 16, 2010 @03:06PM (#1698770)
When you run a browser test on a cloud service, how do you know if it looked good or not? We created the video recording part of Sauce's testing service so you can see how the browser test worked in our cloud.
Re:SodaJS, functional web testing in NodeJS by carson on Thursday September 16, 2010 @02:54PM (#1698728)
I don't think that is what you would want to do with this. It is really made for automated testing with specific browsers.
Re:SodaJS, functional web testing in NodeJS by pluc on Thursday September 16, 2010 @03:11PM (#1698783)
What exactly is the video trying to show aside from a window opening?
Re:SodaJS, functional web testing in NodeJS by Rauchg_ on Thursday September 16, 2010 @04:33PM (#1699059)
The test makes sure that provided invalid credentials (user and password), the message "please check your username and password" will show after making an ajax call to the server.
Re:SodaJS, functional web testing in NodeJS by hugs on Thursday September 16, 2010 @03:19PM (#1698803)
It shows the test (as seen on the left side of the screen at sodajs.com) running in a real browser.
Re:SodaJS, functional web testing in NodeJS by cgbystrom on Thursday September 16, 2010 @02:56PM (#1698738)
I find Celerity with its completely headless browser much more interesting for doing acceptance/functional tests.

Sports both CSS and JavaScript without requiring rendering.

Re:SodaJS, functional web testing in NodeJS by hugs on Thursday September 16, 2010 @03:09PM (#1698779)
Headless browsers are faster, but they're not a real browser. Selenium was explicitly created to answer the question: "How does my app work in the actual browsers my users use?"