Page 1 of 2
Check_Selenium unknown output
Posted: Tue Apr 12, 2016 6:01 am
by CloudOps
Hi All,
I am getting below error while running the selenium script (Screenshot attached). when we run the script we are getting "unknown". can anyone guide me how to fix the issue.
Thanks,
Re: Check_Selenium unknown output
Posted: Tue Apr 12, 2016 1:36 pm
by scottwilkerson
What is the contents of your simple_script.pl ?
Re: Check_Selenium unknown output
Posted: Tue Apr 12, 2016 2:07 pm
by lmiltchev
Did you run the following command in order to clean up the format of simpletest?
Code: Select all
perl clean_selenium_script –filename=/path/to/simpletest –o=simpletest
Re: Check_Selenium unknown output
Posted: Wed Apr 13, 2016 4:22 am
by CloudOps
lmiltchev wrote:Did you run the following command in order to clean up the format of simpletest?
Code: Select all
perl clean_selenium_script –filename=/path/to/simpletest –o=simpletest
Yes i did run the clean up script before executing the code. We still had the same issue.
Re: Check_Selenium unknown output
Posted: Wed Apr 13, 2016 4:29 am
by CloudOps
scottwilkerson wrote:What is the contents of your simple_script.pl ?
Code: Select all
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More "no_plan";
use Test::Exception;
my $sel = Test::WWW::Selenium->new( host => "192.168.136.134",
port => 4444,
browser => "*firefox",
browser_url => "https://xxx.yyy.com/" );
$sel->open_ok("/");
$sel->click_ok("id=loginHref");
$sel->wait_for_page_to_load_ok("30000");
$sel->type_ok("id=login", "XXXXX");
$sel->type_ok("id=password", "XXXXX");
$sel->click_ok("id=go");
$sel->wait_for_page_to_load_ok("45000");
Re: Check_Selenium unknown output
Posted: Wed Apr 13, 2016 10:05 am
by lmiltchev
Can you run the following command, and show us the output?
Code: Select all
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep -i 'selenium\|timeperf2'
Re: Check_Selenium unknown output
Posted: Mon Apr 18, 2016 12:33 am
by CloudOps
lmiltchev wrote:Can you run the following command, and show us the output?
Code: Select all
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep -i 'selenium\|timeperf2'
Attaching the output screenshot for the above code snippet.
Re: Check_Selenium unknown output
Posted: Mon Apr 18, 2016 3:14 pm
by ssax
Do you have special characters in the password?
Try using single quotes around it, change "password" to 'password'.
Also, please attach your check_selenium.pl as well so that we can compare it with ours.
Thank you
Re: Check_Selenium unknown output
Posted: Tue Apr 19, 2016 7:43 am
by CloudOps
ssax wrote:Do you have special characters in the password?
Try using single quotes around it, change "password" to 'password'.
Also, please attach your check_selenium.pl as well so that we can compare it with ours.
Thank you
I do have special characters in the password, and i tried to insert the password in single quotes, no luck!
Attaching the check_selenium.pl for your reference.
Thanks
Re: Check_Selenium unknown output
Posted: Tue Apr 19, 2016 5:00 pm
by Nagios Support
We will need to do some more testing, and will get back to you within the next 24 hours. Thank you!