Jasmine and Angular Script are two different things. Angular Script is just built to look like Jasmine's test code. They both use the describe (), it () functions and have similar "frame" styles.
The main difference is that Jasmine is more focused on Javascript testing, and Angular Script is more DOM-oriented.
For example, Angular Script can be used to check if your AngularJs code is creating DOM objects correctly, and Jasmine checks Javascript itself.
The big difference between the two is that Angular Script allows you to open a βbrowserβ (like a frame) and load the page completely, while Jasmine just loads the Javascript.
browser().navigateTo("http://www.stackoverflow.com");
can only be run in an angular script.
Similarly, Angular Script can manage DOM objects. You can fill out forms and select objects, for example:
input("username").enter("my_username"); input("password").enter("my_password"); element(".submitButton").click();
I highly recommend you take a look: http://docs.angularjs.org/guide/dev_guide.e2e-testing and http://pivotal.imtqy.com/jasmine/
source share