Call Galen commands from a NodeJS application

146 views
Skip to first unread message

Satyabrata Saha

unread,
Oct 3, 2017, 9:35:48 PM10/3/17
to Galen Framework
Hi,
I have my functional testing framework developed using the NodesJS dev stack (selenium webdriver+jasmine+nodejs). I would need galenframework to be integrated with the functional testing framework(developed in NodeJS).For example - I would like to call galen methods at the end of my functional tests;-  

1. Launch URL
2. Perform some functional validation
3. Call the 'checkLayout' method of galenframework for layout testing of the page.

Could you please help me understand how this can be achieved? Currently, I am successfully running a POC for Galen tests independently with the galenframework-cli (version 2.3.2) using the Javascript library. But as a next step, I would like to integrate this with the functional testing framework which is developed on NodeJS.

Thanks in Anticipation,
Satyabrata 

Martin Reinhardt

unread,
Oct 4, 2017, 1:40:55 AM10/4/17
to Galen Framework
currently there's no direct integration within nodejs modules. I planned to do so for me Galen NPM packages (galenframework-cli is one of these), but did not yet started it.
Feel free to open up an issue on GitHub for a feature request.

Satyabrata Saha

unread,
Oct 4, 2017, 11:49:24 PM10/4/17
to Galen Framework
I have found out an npm package here - https://www.npmjs.com/package/galenframework  which says a node wrapper of Galen. Can I make use of this in order to solve my purpose?

Do you have any sample code for the same?

Martin Reinhardt

unread,
Oct 5, 2017, 4:16:33 AM10/5/17
to Galen Framework
no, this one intended to be used just for build integration, see here. What you want is a module export. You can raise an issue on GitHub and I will check what I can do for you.

Satyabrata Saha

unread,
Oct 10, 2017, 12:05:38 AM10/10/17
to Galen Framework
Thanks Martin for your replies.I have created an issue here.Let me know as you release a version or a branch.

Thanks,
Satyabrata

Satyabrata Saha

unread,
Nov 7, 2017, 9:41:26 PM11/7/17
to Galen Framework
Hi Martin,
Thanks for taking out time and work on the enhancement.
Curious to understand if the framework now is supported for NodeJs integration.

Thanks,
Satya

Reply all
Reply to author
Forward
0 new messages