Coder Social home page Coder Social logo

interview's Introduction

interview

When you interview with CaseRails, we'll provide you with the following environment variables that you'll need to use to complete the tasks:

  • TEST_LOGIN_URL
  • TEST_LOGIN_PASSWORD
  • TEST_LOGIN_EMAIL

Interview Task A: Run existing Protractor Tests

  1. In a shell (the "Main" shell), clone this repository:
  2. git clone [email protected]:CaseRails/interview.git
  3. Install the requirements. Instructions here are for Mac OS X. For other OS's you're on your own. It should be very similar for Linux. No idea how this works on Windows.
  4. Install the selenium server: cat brew_requirements.txt | xargs brew install
  5. Install the node requirements: cat node_requirements.txt | xargs npm install -g
  6. Install the Python requirements: 1. pip install virtualenvwrapper 2. mkvirtualenv interview 3. pip install -r requirements.txt
  7. Open a separate shell and run the selenium server:
  8. selenium-server
  9. In the Main shell, export the environment variables so protractor knows where to login to and what credentials to use:
  10. export TEST_LOGIN_URL=<the url we gave you>
  11. export TEST_LOGIN_PASSWORD=<the password we gave you>
  12. export TEST_LOGIN_EMAIL=<the username we gave you>
  13. In the Main shell, run the protractor tests:
  14. protractor protractor.conf.js
  15. Take a screenshot of your Main shell showing that the protractor tests ran successfully.

Interview Task B:

  1. Create a new spec file interview.js in the protractor/ directory. Refer to dev_intro.js for how this should look.
  2. Edit protractor.conf.js so that your new spec runs after the dev_intro spec.
  3. To complete this task you'll need to modify the files protractor.conf.js, protractor/interview.js, and protractor/contacts_list.page.js.
  4. The interview spec should do the following:
  5. Start on the "Create Wizard" page, like the dev_intro spec.
  6. Find the "Contacts" button by its ID on the page. Do this by adding a 'contactsButton' member to the Create Wizard Page Object.
  7. Click it.
  8. Verify that the header at the top of the page says "Contacts"
  9. Find the "Manage" button by its ID on the page. Do this by adding a 'manageButton' member to the Contacts List Page Object.
  10. Click it.
  11. Verify that the header at the top of the page says "Manage"
  12. Run the protractor tests with protractor protractor.conf.js, and take a screenshot of your Main shell showing the protractor tests run successfully.
  13. Get me your code, so that I can look at it and run it.
  14. Make a commit of the files you've changed.
  15. Create a patch file: git format-patch origin
  16. Note - If you have made more than one commit, this will make multiple patch files.
  17. Email me the patch file(s) so that I can run your code and see if it works.

interview's People

Contributors

quietlyconfident avatar

Watchers

 avatar James Cloos avatar George avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.