Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Selenium test development process

View previous topic View next topic Go down

Selenium test development process

Post by cattox on Fri Jun 27, 2014 9:19 pm

Hi all,

this is not a technical post. I'm using selenium web driver along with Cucumber and Jenkins as CI tool. In the end, after a lot of effort everything works, but I believe the needed effort is making it to "expensive" (effort wise) for me.
I'm developing and testing locally in code/test iterations. Minor glitchs sometimes put my patience to the test but the real pain comes when I try to run them on Jenkins. Many times tests pass locally and fail on Jenkins, most of the times the cause is related to the web element locators. For some reason, this is stricter on jenkins than locally. The turn around time here is huge: code, test locally, push to repository, run on jenkins, back to code...

In the end I take too long to put a test to work.

Does anyone has a similar experience, with a successful turnaround? what's the process you're using?
Do you have an average time for test development? (maybe I think I'm taking too much time, but that's just what it takes).

Thanks in advance,
Andre

cattox

Posts : 4
Join date : 2014-06-27

Back to top Go down

Re: Selenium test development process

Post by mail2prassad on Fri Jul 18, 2014 7:31 pm

Does the machine that you are running your tests from Jenkins got the same configuration similar to your local machine. For instance browser version, compatibility etc.,

mail2prassad
Amateur
Amateur

Posts : 41
Join date : 2013-06-05

Back to top Go down

Re: Selenium test development process

Post by cattox on Mon Jul 21, 2014 3:52 pm

Hi,

thanks for the reply.
Both machines are pretty similar, locally I have a windows 7 running Firefox 27. Jenkins server is running windows server and Firefox 27 also. My guess is that because this server is much busier than my machine some kind of racing conditions are causing this, but I would like to get some input from others.. Sad

cattox

Posts : 4
Join date : 2014-06-27

Back to top Go down

Re: Selenium test development process

Post by mail2prassad on Mon Jul 21, 2014 4:49 pm

What happens when you run your test on windows server machine with firefox 27 i.e out of box from jenkins. Does your tests run successfully.

mail2prassad
Amateur
Amateur

Posts : 41
Join date : 2013-06-05

Back to top Go down

Re: Selenium test development process

Post by cattox on Mon Jul 21, 2014 8:06 pm

No, its just the same. I might have used the Jenkins word in a wrong way. I just wanted to give context to what I was doing. Probably Jenkins has nothing to do with it. Most probably it's a race condition..

cattox

Posts : 4
Join date : 2014-06-27

Back to top Go down

Re: Selenium test development process

Post by mail2prassad on Tue Jul 22, 2014 4:14 pm

It looks like this may be because of resources / page load time / network latency on windows server machine.
You may need to try using explicit wait for the elements in your code.
What do you think.

mail2prassad
Amateur
Amateur

Posts : 41
Join date : 2013-06-05

Back to top Go down

Re: Selenium test development process

Post by cattox on Tue Jul 22, 2014 5:44 pm

I already have them...

cattox

Posts : 4
Join date : 2014-06-27

Back to top Go down

Re: Selenium test development process

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum