Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
cattox
Posts : 4
Join date : 2014-06-27

Selenium test development process Empty Selenium test development process

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
avatar
mail2prassad
Amateur
Amateur
Posts : 41
Join date : 2013-06-05

Selenium test development process Empty Re: Selenium test development process

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.,
avatar
cattox
Posts : 4
Join date : 2014-06-27

Selenium test development process Empty Re: Selenium test development process

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
avatar
mail2prassad
Amateur
Amateur
Posts : 41
Join date : 2013-06-05

Selenium test development process Empty Re: Selenium test development process

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.
avatar
cattox
Posts : 4
Join date : 2014-06-27

Selenium test development process Empty Re: Selenium test development process

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..
avatar
mail2prassad
Amateur
Amateur
Posts : 41
Join date : 2013-06-05

Selenium test development process Empty Re: Selenium test development process

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.
avatar
cattox
Posts : 4
Join date : 2014-06-27

Selenium test development process Empty Re: Selenium test development process

Tue Jul 22, 2014 5:44 pm
I already have them...
Sponsored content

Selenium test development process Empty Re: Selenium test development process

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