testing

Does Selenium RC support IE8?

Can anyone confirm if Selenium RC server fully supports IE8? ...

How do I properly test my database performance with high load demand?

I have found a lot of topics about stress-testing web application. My goals are different, it's to test only database (sybase sql anywhere 9). What I need: Some tool to give a diagnostic of all sqls and find a bottleneck. I wish I could macro-view the entire system easily. Best practices to design/build a good sql queries. The syst...

Waiting for a text change in WatiN

I am trying to test a web page that has ajax calls to update a price. An ajax call is fired on page load to update an initially empty div. This is the extension method I'm using to wait for a change in the inner text of the div. public static void WaitForTextChange(this IE ie, string id) { string old = ie.Element(id).Text; ie.E...

is it possible to read something.properties using javascript ? (in a .hta file) >> to read in Selenium

I am using Selenium to do testing, We write our test cases in html files and make test suites out of them, our requirement is to write test cases that are robust enough to change themselves as per the test environments. for this, I prefer not to enclose specifications such as urls to open, text to search for on screen, etc in the html s...

Java Gridgain application starts to fail after 1 day of stress testing

So I have a an application which is running on top of gridgain and does so quite successfully for about 12-24 hours of stress testing before it starts to act funny. After this period of time the application will suddenly start replying to all queries with the exception java.nio.channels.ClosedByInterruptException (full stack trace is at ...

How can I effectively test (unit/integration) concurrent code in Java?

I saw this post on SO already but it still begs the question, at least for Java. It seems that this should be a pressing issue for any app (i'm testing a web app for this use case) that's multi-threaded. How have you guys dealt with it in a way that allows your threads to interleave -- inherently meaning testing random thread behavior. ...

Django Testing Framework with login decorators - do they work? Error with reverse

I am using the Django testing framework (which is useful, but feels clunky and awkward). A test keeps failing, and the traceback leads me to believe it's an issue with the login decorators. Here are the tests, the error, and the relevant code: class TestMain(TestCase): fixtures = ['timetracker'] def test_login(self): c ...

(Selenium) How to test whether a download of a certain file was started?

I want to test whether a certain action results in a file download (a) at all, and (b) with the file having a certain name. Is there any way to use Selenium to do this? ...

What is the accepted practice for adding Nunit tests to an existing solution?

I have inherited a reasonable sized ASP.net solution that has no automated tests. The solution seems to include all of the source/pages in one solution with no name-spacing and no separation of tiers, so there are direct SQL calls within code behind files etc. Before making changes to this site I would like to add some unit tests, prefe...

Fetching rendered JavaScript from a page (Omniture pixel)?

I have some code (incidentally, it is for Omniture SiteCatalyst) that renders a 1x1 pixel based on some JavaScript object variables I set in the page's source code. The JavaScript eventually creates an img based on the scripting code, but the img src isn't hard-coded into the HTML. How can I figure out what the img src is, given the URL ...

PyQT GUI Testing

Does anyone know of a automated GUI testing package for that works with PyQT besides Squish? Nothing against Squish I am just looking for other packages. It would be cool if there were an open source package. I am doing my testing under Linux. ...

Cucumber new paths

The answer for this question should be trivial. Is there any way to get in to the show action path to a given AR object within cucumber paths.(I am using factories to set up test AR objects). I can refer in paths.rb new, edit and index paths but when it comes to show action it needs to specify the object and is there a way to refer that...

OS specific tests for Perl test scripts

Is there a more elegant way to write the portion of the test script which is O/S dependant? Please refer to the code below the comment line. Background: Module Perl::Tags creates a tags file for VIM. On Win32 the directory separator is "\" but on other OS's it is "/". Vim's Perl-support module seems to read the tags file quite happily,...

Network bandwidth assesment tool

I need to test the bandwidth I have on my USB RNDIS connection. I am using windows CE 6.0. I already tried looking into iperf for windows ce, but, sadly, I did not manage to compile it. Can anybody recommend of a tool/API to test the bandwidth under Windows CE? In case the answer involves an API, I am looking for something with minimal e...

How often should applications be stress or load tested?

Is there a rule on how often an application should be stress or load tested? I normally do it before putting into production a new version, when the hardware changes or when the expected amount of users is known to change. But today i'm asked if this should be a standard practice for an application that is in production even if no chan...

How do I fill in a specific field in Webrat when several share the same name and id?

I'm just getting started with Cucumber and Webrat, and am adding feature specifications to an existing Rails application. One page in the app has multiple forms on it, representing different ways to build a new Character object. Here's a simplified example: <form id="adopt_character_form"> .... <input type="text" name="charact...

How to create integration test for file upload in Rails?

What is the best way for testing file uploads for Rails Applications? I'm currently using Paperclip for uploads, but I guess that doesn't make much difference. Should I even create tests for file upload, or is it better to just stub it all out and don't create any real upload tests? Say I have some tests just for the upload. Should I a...

Is it possible exclude test directories from coverage.py reports?

I'm kind of a rookie with python unit testing, and particularly coverage.py. Is it desirable to have coverage reports include the coverage of your actual test files? Here's a screenshot of my HTML report as an example. You can see that the report includes tests/test_credit_card. At first I was trying to omit the tests/ directory from...

Test an application

Hi Can every one tell me about type of test in a application. I heared about TestCase, UnitTest, FunctionalTest and another type of test, but I don't know these discription and usage of these. Please help me to understanding all about Test Process in an application. ...

Junit REST tests?

I am using Struts2, Spring 2 and Junit 4.5. My main question is, whether even to test REST calls? Because, basically this are only calls to business logic and they don't have any logic theirs methods. I have tests for all DAO and BL classes, rest xml and json handler, so I don't know what should I even test in REST calls - result code...