Selenium IDE RIP... substitutes?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Danb
Posts: 2
Joined: Thu Dec 21, 2017 4:58 pm

Selenium IDE RIP... substitutes?

Post by Danb »

Hi,
first post here (hi folks), prompted by changes to Selenium IDE.
Currently using scripts produced in Selenium IDE and exported in Perl to verify that web apps are healthy (eg check that login scenario works).
Scripts are executed in Selenium regularly through the day and Nagios monitors each run.

Now that Selenium IDE is no more and all related Perl-based plugins are obsolete, has anyone got a good alternative they could share please? Also unsure what replaces Selenium RC - documentation on the website barely covers 2.x, let alone Selenium 3.x

Have seen newer test automation solutions, eg Katalon, but nothing that has been picked up as a plugin solution yet. Is a Java export of a test case worth pursuing do you think?
Thanks in advance, will update if I come across anything else
Dan
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Selenium IDE RIP... substitutes?

Post by dwhitfield »

I'm not aware of anything that has the documentation for Nagios like Selenium does. There are a lot of options given at https://screenster.io/selenium-alternat ... utomation/

I know @mcapra has some thoughts on this matter, but I don't know if they have evolved since the last time he posted about this on the forums.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Selenium IDE RIP... substitutes?

Post by mcapra »

Danb wrote:Is a Java export of a test case worth pursuing do you think?
I prototyped this a year-ish ago. Between making sure the classpaths were lined-up on the Nagios side of things and filling in the gaps where the IDE was unable to produce a proper method call for the Java bindings, I ditched it as a "general population" solution. A person reasonably familiar with Java and Selenium could probably navigate the setup without too much trouble.

I've had a lot of success with integrating CasperJS and Resurrectio so far, just haven't released any documentation or scripts yet. I'm fairly confident those two tools are a good fit for the Nagios ecosystem since Nagios XI already includes PhantomJS for other things.

A big missing piece that I've yet to start work on is a script that executes and parses the CasperJS output in a "Nagios friendly" way. This is where that will live some day if you'd like to stay in-the-loop with that work:
https://github.com/mcapra/nagios-check_casperjs

EDIT: There's an early, sloppy plugin up, but a lot of documentation needs to be done for actually recording tests and setting up CasperJS. I'll update this post when it happens.
Last edited by mcapra on Fri Dec 22, 2017 12:58 pm, edited 3 times in total.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Selenium IDE RIP... substitutes?

Post by dwhitfield »

Thanks @mcapra!
mcapra wrote:I'm fairly confident those two tools are a good fit for the Nagios ecosystem since Nagios XI already includes PhantomJS for other things.
Even though this thread is about Core, this is still a valid point.

OP, let us know if you have any questions. Also, feel free to make feature requests are relevant:
Plugins: https://github.com/nagios-plugins/nagio ... issues/new
Core: https://github.com/NagiosEnterprises/na ... issues/new
Danb
Posts: 2
Joined: Thu Dec 21, 2017 4:58 pm

Re: Selenium IDE RIP... substitutes?

Post by Danb »

Thanks both for your input, I'm just getting back into this seriously after a Christmas break and will take a look at suggestions. Cheers
kyang

Re: Selenium IDE RIP... substitutes?

Post by kyang »

Sounds good!

Let us know if you run into any issues or have any questions.
Locked