The Document for selenium test! - ruby

I want to use selenium test to cover my rails project ! but i just find little documents on selenium test . I want someone to give me some documents for selenium test of all types !like website ,pdf ,text etc. you can sent them to my gmail liwh87#gmail.com ,or write under the question. Thank you ,and best regards!

You might start here

Related

how generate logs and reports in ruby capybara rspec

I am new to this technology and I am working on an automation framework, ruby-capybara-rspec. And this project is in POC state. Now I want to generate "Logs" and "reports" as well. Please help me if there is any default/inbuilt functionality to do so or is there any specific gem I can use to achieve it. Thank you in advance.
PS: There is no specific ask from the client so I can bring my own logging and report to this framework.
From the official documentation:
rspec example_spec.rb --format documentation --out rspec.txt

Chat Application like Hangout/facebook

I am now to coding so may be it's a there is obvious answer of this question. can we embed google hangout in out Spring/Hibernate web application for chatting? Or i have to start from beginning to develop a new one. I can make a simple application using spring,hibernate, jQuery,AJAX, Mysql but I want a standard one in which video call is also there and smileys . Please input your suggestions! Cheers !!

Jmeter load testing on a HTTP URL

I want to perform load testing using jmeter tool on the below url, How can i achieve this,
http://thebus.in/B2C/Result.aspx?sourceId=1128&destinationId=198&doj=15/October/2014&dor=30/October/2014
How can i achieve this?
Glad to know that you chose Jmeter, which i love, for your load testing requirements.
Please refer to the tutorials below to get some basic idea.
http://www.youtube.com/watch?v=4mfFSrxpl0Y
http://www.tutorialspoint.com/jmeter/jmeter_build_test_plan.htm
& Ofcourse,
http://jmeter.apache.org/usermanual/
When you come up with your own script and if it does not work as expected, Then ask your questions here to get them clarified!!

How to run cucumber scenario with and without javascript avoiding code duplication

I was wondering if there is any way to run cucumber scenario with and without javascript without duplicating code.
I develop website that utilizes html5 navigation. However it should work find if browser doesn't support html5 features.
I would like to write cucumber test that would test navigation.
I know I can test basic html navigation with simple cucumber scenario. And I can test html5 navigation with same scenario but with #javascript tag.
I would really love to avoid this code duplication.
I was experimenting with around hooks, hoping that I could simple call block, then call same block with
Capybara.using_driver(Capybara.javascript_driver) { block.call }
However this doesn't work.
Anyone have any idea how to implement this?
P.S.
I'm quite new to Ruby, and just started working with cucumber.
It looks like you need two different scenarios. I'd use the Background feature to avoid step definitions but it's a matter of taste.
Based on the solution by Jon M of using the environment variable, you need to set the current_driver before each scenario runs (which seems better than changing the default_driver).
Before do
if ENV['USE_JS_DRIVER']
Capybara.current_driver = Capybara.javascript_driver
end
end
And then running
cucumber .
USE_JS_DRIVER=1 cucumber .
If you don't want to create separate features to deal with both types of browser, then one solution is to use an environment variable to tell cucumber which type of browser driver to use, and invoke cucumber twice.
You'd need to query the environment variable to set the correct driver, probably in env.rb:
if ENV['USE_JS_DRIVER']
Capybara.current_driver = Capybara.javascript_driver
end
And then you could run either/both of:
cucumber .
USE_JS_DRIVER=1 cucumber .
You'd have to find some useful way of merging the results from both cucumber runs, but depending on your needs this could be a simpler solution than duplicating your scenarios.

how to get Hudson CI to include test results in the status email

I've been evaluating Hudson, with an eye to convert to it from CC.NET. In CC.NET, I've gotten my emails to include test statistics, such as # of tests run, how many failed, etc. It even shows in red "this project has no tests" which is a great motivator, right?
Is there any way to accomplish this in Hudson?
I've tried the email-ext plugin, because I'm told that it can get test output and other great stuff into the email, but I just can't figure out "how."
It looks like I need to put a token in for "content" but I dont see any token available that looks like "test results" to me :) Or any that would parse some xml that I provide a path to, or such.
Has anyone done this and can help?
Thanks!
From the Email-ext plugin wiki page:
To see a list of all available email tokens and what they display, you can click the "?" (question mark) at the top of the email-ext section on the project configuration screen.
I can't check if it's listed in the online help right now but I think you're looking for the $FAILED_TESTS token.
If you need more guidance, check this blog post: Continuous Integration with Hudson, ColdFusion, and MXUnit: Advanced Notification Control. There are some screenshots that might help.
See this question - Having Latest Tests Results info in the notified email with Hudson . It seems like the only answer is to hack in your own solution, until Email-ext is improved.

Resources