- cattox
- Posts : 4
Join date : 2014-06-27
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
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
- mail2prassadAmateur
- Posts : 41
Join date : 2013-06-05
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.,
- cattox
- Posts : 4
Join date : 2014-06-27
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..
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..
- mail2prassadAmateur
- Posts : 41
Join date : 2013-06-05
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.
- cattox
- Posts : 4
Join date : 2014-06-27
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..
- mail2prassadAmateur
- Posts : 41
Join date : 2013-06-05
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.
You may need to try using explicit wait for the elements in your code.
What do you think.
- cattox
- Posts : 4
Join date : 2014-06-27
Re: Selenium test development process
Tue Jul 22, 2014 5:44 pm
I already have them...
- Selenium Automating the testing - Seeking guidence in installation process.
- why selenium?how test the application using selenium?
- why selenium?how to test the application using selenium?
- What is the use of Selenium Core and Selenium Test Manager ? (N-Unit Procedures in VS 2010)
- Display 'Selenium Functional test Runner' when run selenium RC
Permissions in this forum:
You cannot reply to topics in this forum
|
|