Tag Info

Hot answers tagged

5

As @Niels van Reijmersdal mentioned, it makes sense to use the language in which you have local experts available. But you don't have to use the same language - use the language in which your team will be more productive. Python and Ruby are almost identical in expression power. I would argue that Python is more readable, which is significant advantage when ...


3

You could use next algorithm Get all links from page. Implement ruby script to check all links First steps are implemented in two ways Open page by webdriver, and get all links by tag , for example Get page by http request and parse html code by regex Second step: Implement script for request sending Use this link for implemention script. Good ...


3

Have you seen these? I did a search in google for: "rest testing with ruby" How to test a JSON REST API REST API test cucumber steps best practise On the other hand, if you have Ruby skills, then you can write your own library to deal with REST responses or you can use something from RubyGems.


2

I was facing a similar issue, and found a solution in this article: http://swdandruby.wordpress.com/2013/05/11/headless-gem-causes-errnoeconnrefused/ You have to specify a different display number for each browser headless instances you need. So if you want to run at the same time chrome and firefox in separate headless mode, you can do something like: ...


1

In Linux you could write a bash shell script to load a database so you are at a known place for your testing. In windows you could use PowerShell to do it quite easily for MS SQL. There should be automation options for all the mature databases. As you don't specify your OS or database more specific help is unlikely. A sane thing you might consider doing ...


1

In my opinion it's better to develop with the tools and languages that you love. Here are good Selenium recipes, code examples & API references for Ruby: http://samples.leanpub.com/selenium_recipes-sample.pdf https://code.google.com/p/selenium/wiki/RubyBindings http://rubydoc.info/gems/selenium-webdriver/2.2.0/ (the right top corner)


1

You probably want to follow the Jenkins tutorial. Here is a good one. http://www.vogella.com/tutorials/Jenkins/article.html


1

Would recommend a CI like environment. You could setup the scripts to run either on a per job basis, or allow the job to accept a parameter that your client specifies to run the script he wants to run. The output will be displayed in the CI console, so he can check it on his own. Ruby and the scripts would only have to be installed on the CI server. Check ...


1

Chapter 12 of The Cucumber Book deals with testing REST Web Services, as well as a wealth of useful advice on getting started with Cucumber in general. The chapter walks through two different approaches. Whether you decide to use the same tools or not, I think the techniques are useful. The team I work in decided to write our own library, but as SayusiAndo ...


1

This might be useful. driver.findElement(By.tagName("body")).sendKeys("Keys.ESCAPE"); OR JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("return window.stop");


1

There were a few possible solutions to this over on Stackoverflow on Stop browser load from selenium webdriver. This included: Installing an extension in Chrome called Stop load using the built in pageLoadTimeout() method in Selenium using Sikuli or Autoit to access the browser's native controls


1

If you want to simulate the browser's STOP button, this post should help you out http://stackoverflow.com/questions/5453423/how-to-stop-the-page-loading-in-firefox-programaticaly


1

That sounds basically right. The only change I might make is instead of loading up to a CSV, you can just take a mysqldump and load the DB from the dump at the beginning of the script.


1

If you use unit testing framework Test:units then yes it have naming conventions. You can read more from Test::Unit.



Only top voted, non community-wiki answers of a minimum length are eligible