Missed Part 1 of Adventures in Install Protractor? Find it here!

Let’s move on to steps 2 and 3:

110

This time it worked without an error since I already have java installed on my machine:

23

Finally I am ready to run the first sample from the protractor tutorial page:

31

And finally I have my first success:

42

 

I played around with the next sample from the tutorial page:

51 (1)

And it also worked as described:

61

 

Now I wanted more – I wanted a nice html report coming with the testing. While typing what I wanted into the search bar auto completion conveniently listed a tool for me:

91

Again I had to run a npm task:

101

Which for some reason worked perfectly. 😉

Following the documentation I added a couple of lines to my config.js:

111

 

However somehow I missed something because now the config.js is no longer valid:

121

 

I stumbled over the same issue as here I forgot a “,  in my config.js

131

 

After fixing this issue I finally was able to create a report.

rsz_141

With a stacktrace:

151

 

And a screenshot:

161

Everything is Ok for now – however I haven’t even started to check what else I can do with the whole tool chain. I am pretty sure that there will be other problems waiting for me.

And this will only be the beginning – I have to ask myself a couple of questions:

What about testing web sites on mobile devices which is not even officially supported?

There is a longer guide to use appium together with protractor which will take me another half day or so to get it running.

What if other projects are using different frameworks?

Other teams will prefer other frameworks for which I will need something else.

What about the test cases themselves?

There are BDD style, however somebody has to create them, maintain them, and add new ones – everything in code:

rsz_171

 

What if I want to check e.g. via a web services if data is properly handed over?

I will need another tool with for sure a totally different approach.

So what do you think? Is it worth the effort?

 

Testing with Selenium
Tricentis Logo White Version
X