Thursday 21 April 2016

Getting started with Protractor


Note| 
 
Text in Blue [#PYTHON], Rose [#PROTRACTOR], Red [#RUBY] and Orange [#JAVA] can be edited or mentioned important for the entire blog. All the posts are practically done by me.


Getting started with Protractor

1| Create a folder for new project.
2| Open Terminal/cmd_prompt and navigate project location.
3| Download protractor through terminal (make sure you have installed nodejs in your machine before executing the following command)

project-wise installation
npm install protractor

or
global installation
npm install -g protractor

4| And update the selenium-standalone-server.jar file after protractor installation.

project-wise updation
node_modules/protractor/bin/webdriver-manager update

or
global updation
webdriver-manager update

This will update the existing selenium server and ChromeDriver under node_modules/protractor/selenium/selenium-server-standalone-2.xx.x.jar



To update the selenium server alone, enter the following command,
webdriver-manager update --standalone

5| Now, create a spec file using Jasmine unit testing framework #sample

6| And create the Protractor configuration file, protractor-conf.js for execution #sample

7| To run the spec file, you need to start selenium-server first,

project-wise
node_modules/protractor/bin/webdriver-manager start

or
global
webdriver-manager start

8| Let's run the first protractor project now,

project-wise

node_modules/protractor/bin/protractor protractor-conf.js

or
global
protractor protractor-conf.js


Note: For more info. download my sample project from Github Link

33 comments:

  1. Nice work Keep update.Learn Selenium WebDriver Training
    Selenium Training in Hyderabad

    ReplyDelete
  2. Contact us for coded ui training both online and f2f.
    Talk to eight one two two two four one two eight six
    www.thecreatingexperts.com
    Coded UI Training in Chennai

    ReplyDelete
  3. nice blog too informative. looking and reading your points its so impressive. doing more blog like this. i really appreciated doing like this.
    PTE Coaching in Chennai

    ReplyDelete
  4. This is my first visit to your blog, your post made productive reading, thank you.
    Selenium Training in Chennai

    ReplyDelete
  5. Good blog post which provided a interesting information about protractor.keep updating...
    SEO Companies in India

    ReplyDelete
  6. Hi,
    Thanks for sharing the great information about Selenium… Its useful and helpful information…Keep Sharing.

    ReplyDelete
  7. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.
    Ultrasonic Testing Courses in Chennai

    ReplyDelete
  8. Thanks for such anice blog on selinium. Its very useful!
    PTE Coaching Centre in Hyderabad

    ReplyDelete
  9. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information... Java Training in Chennai | Blue prism Training in Chennai

    ReplyDelete

  10. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.

    python Training in Bangalore | python Training in Bangalore

    ReplyDelete
  11. Thanks for sharing the valuable information. It is very useful.

    Selenium Training in Chennai

    ReplyDelete
  12. Thanks for the info...

    Real Trainings provide all IT-Training Institutes information in Hyderabad, Bangalore, Chennai . Here students can Compare all Courses with all detailed information. In WIZDOM TECHNOLOGIES we provide courses like python, AWS, Linux, Devops etc...

    ReplyDelete
  13. Nice blog has been shared by you. it will be really helpful to many peoples who are all working under the technology. Thank you for sharing this blog.
    safety course in chennai

    ReplyDelete
  14. The information which you have provided is very good. It is very useful who is looking for testing courses

    ReplyDelete
  15. The information which you have provided is very good. It is very useful who is looking for Hadoop Training in Chennai

    ReplyDelete
  16. Wonderful post!Thank you for sharing this info with us.
    Web Designing Training Institutes in Delhi

    ReplyDelete
  17. Understand how Mobile App Marketing works, and make it a part of your marketing strategy.

    ReplyDelete

  18. nice course. thanks for sharing this post this post harried me a lot.
    Python Training in Noida

    ReplyDelete

  19. smart outsourcing solutions is the best outsourcing training
    in Dhaka, if you start outsourcing please
    visit us: graphic design training
    digital marketing training

    ReplyDelete
  20. As claimed by Stanford Medical, It's in fact the SINGLE reason women in this country live 10 years longer and weigh an average of 42 lbs lighter than us.

    (And realistically, it has totally NOTHING to do with genetics or some secret exercise and really, EVERYTHING to do with "how" they eat.)

    P.S, What I said is "HOW", not "what"...

    CLICK on this link to reveal if this little test can help you decipher your true weight loss possibilities

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. Nice Article!

    Thanks for sharing with us 🙂

    Digital Marketing Course In Hyderabad

    ReplyDelete