Kishan Patel Kishan Patel - 1 year ago 76
AngularJS Question

How to integrate Protractor test cases with Hiptest?

For a Website which is made using angular js , our organization used protractor as the tool to automate test cases.

Our organization has come up with a new tool named 'HipTest' to manage test cases automation.
How to integrate protractor test cases with HipTest. I went to following links but was unable to fetch some useful information.

Can Anyone help me how to start ?

Answer Source

I'm one of the main contributor or hiptest-publisher, so I should be able to help you.

The quick way to start with hiptest-publisher is to download the bootstrap of the tests from Hiptest (under the automation tab, you will have a "Javascript/Protractor" link).

You will get a zip file with four files (you should add all of them to your version control system, alongside the code of the application you are testing): - one for the configuration of hiptest-publisher to use the command-line tool - one for all the tests (you can split them later on, using the --with-folders option in the config file) - one for the action words: that's the place where you will do the automation - one for storing the status of the action words you exported (which is used with hiptest-publisher to see which action words have been updated since the last update)

Once the action words are implemented, the test files generated can be integrated in your test suite like any other Protractor test.

On the Hiptest side itself, the only requirement you have is that your tests should only be written using action words only. From what I understand from your post, you do not work directly in Hiptest yourself and you only manage the automation part (or did I get that wrong ? )

For pushing the execution results back to Hiptest, the principle is pretty simple: - create a test run dedicated to the CI - run the command "hiptest-publisher --config-file --test-run-id " before the tests (so only the tests inside the test run are executed, you do not want to run a test that someone is currently writing to be executed on fail of course) - run your tests - run the command "hiptest-publisher --config-file --push " to push the results back to hiptest.

Note that those two commands (including the test run ID) can be found directly inside Hiptest, from the "Automate" button in the test run.

If you have an Hiptest account, you can contact us directly on the chat, that might be easier to help you through the process. Ho and I have a recording of the last webinar I made about automation, I guess you could find some useful information there too :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download