Gauge for Angular 2 Apps

496 views
Skip to first unread message

Fernando Costa

unread,
Nov 14, 2016, 5:46:49 PM11/14/16
to getgauge
I found examples at http://getgauge.io/ of how to test Web Apps written in Java, C#, Ruby and Groovy using Selenium. What about Angular 2 TypeScript Web Apps? I have been googling, but it seems to be a lacking use case. I think the community JavaScript plugin could be used for this (tsc translates TypeScript into JavaScript), but I don't no how to configure the Selenium Web Driver to run gauge test case specifications. Where can I find help? Thanks.

Srikanth V

unread,
Nov 14, 2016, 11:34:58 PM11/14/16
to getgauge
Hi Fernando,

So you are raising two points:

1) Typescript support - we do not have typescript support with gauge presently, there is Javascript support via the gauge-js plugin (it is community maintained). It would be wonderful to bring in Typescript support, would you be interested in contributing?

2) Gauge + Angular + Webdriver - Philip Beadle has put together an example for testing Angular website using Gauge + Webdriver.io - https://github.com/philipbeadle/gauge-js-angular-webdriver-demo. Is this what you are looking for>

Best
Srikanth

Fernando Costa

unread,
Nov 15, 2016, 4:10:43 AM11/15/16
to getgauge
Hi Shrikanth,

It would be nice to contribute creating a Gauge plugin for TypeScript. Not sure if I've enough knowledge for this, but it would be worth trying. I'm going to check the Gauge contributing guide. Is there any specific instructions about how to create plugins? Maybe I can figure it out reading the source code of community plugins. I have already visited Philip Beadle project before, but it seems to address Angular JS and I'm looking for Angular 2 support.

Best regards
Fernando Costa

Message has been deleted

Srikanth V

unread,
Nov 16, 2016, 1:33:14 AM11/16/16
to getgauge
Hi Fernando,

Please do give Typescript support a try if you can, feel free to ask any questions that you may have. 

Currently, Philip's example is all we have for Angular stack, perhaps its time to put another for Angular2.  I have raised an issue in the example's repo: https://github.com/philipbeadle/gauge-js-angular-webdriver-demo/issues/4. In the meantime, if you are interested in writing one yourself that would be awesome!

thanks
Srikanth
Reply all
Reply to author
Forward
0 new messages