testing

How to instrument a multiproject Maven 2 with Cobertura?

My Maven 2 project consists of several sub-modules. It s structured containing and EJB, WAR and Jar sub modules.. Now i want to instrument the packaged EAR that contains all submodules as mentioned. Example: Interface Maven Project consists of several modules: - InterfacePOM --> parent pom - InterfaceEAR --> EAR module which does not a...

Tools for automated benchmark testing of Java apps?

Does anyone know of any tools for automated benchmark testing of Java applications? By benchmark testing, I mean comparison of results to previous results and/or presenting results along a continuum of bad-to-good rather than pass/fail. ...

How can I test only a part of the URL I am redirected to (using assert_redirected_to)?

In a functional test of my Rails app, I want to test where I am redirected to. The expected URL points to an external resource (that means it's not part of my application). The URL looks like this: https://my.url.com/foo?bar1=xyz&bar2=123 Unfortunately I can't predict the parameters, because they are generated by an external resour...

rake test finding tests. autotest not finding them

$ rake test $ rake test (in /Users/ethan/project/mtc/completestreets) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0...

How to manage test cases using Confluence?

We would like to use Confluence for writing and managing our test cases. Confluence Testplan plugin seems close to what I'm looking for, but it's a bit too simple and limited. How are you using Confluence to manage your test cases? ...

How to change the default output from a Maven 2 / Cobertura instrument goal?

Hi there, when i instrument my classes using Maven 2 using the command mvn cobertura:instrument The output (the instrumented classes) are put in \target\generated-classes. Is there a way to change the output location to \target\classes? I checked the instrumentation tasks of the cobertura-maven plugin but this does not give me a ...

Multiple test assemblies in Visual Studio solution file

I have a single visual studio solution containning all the projects (lets say there are five projects). Additionally, the solution also contains test projects for each of the source projects. In all, there are 10 projects under a single solution. When I launch the test view in visual studio it lists tests only from one of the test assemb...

Command to run only one specific test plugin defined in Maven

I have a Maven POM file with a plugin that runs on the test phase. What command line arguments do I have to pass mvn in order to execute just that plugin rather than all of the plugins for that phase? I am also trying to execute a specific ant-run plugin, that looks like the following: <plugin> <groupId>org.apache.maven.p...

Cucumber response object -- PHP environment

Hi, I'm using Cucumber to test a PHP application, and while most everything works without issue, I haven't yet figured out how to retrieve a response object for a request -- I'm looking to test whether a response is successful (code 200) and also to perform some Hpricot parsings of the response body. Right now my env.rb file is pretty ...

Testing rails application with a I18N database backend

I use Rails 2.3 i18n with a database backend plugin : http://github.com/dylanz/i18n_backend_database This stores my translations and locales in two DB tables. What would be the best way to get these tables working with my tests? I'm guessing I could write a rake task that would copy the tables from the development DB to the test DB. A...

Selenium locator for <label for="x">

With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something lik...

Grand Unified Theory of logging

Is their a Grand Unified Theory of logging? Shall we develop one? Question (just to show this is not a discussion :), how can I improve on the following? (note that I live mainly in the embedded world, but non-embedded suggestions are also welcome) How do you log, when do you log, what do you log, what do you do with log files? How do ...

Online IDE for Python

Is there any web-based IDE that I can use to run quick tests? There're a dozen for PHP and some for even Java but I haven't found yet that runs Python. If there's an open-source IDE available that I can host and run myself, that'd be better. Thanks ...

Specify host for Rails functional tests

Some of my controller actions use the request.host parameter in their logic. In integration tests I can use the host! method to set the host. How can the same be achieved in functional tests? ...

Tapestry5.1+seleniumRc Ajax waitForAjax Request

Hi there, Does anyone know how to do waitForAjaxRequest using seleniumRc(like waitForPageToLoad) on tapestry zone? I know there are alternatives like wait for certain element to appear and etc. I am seeking for a proper waitForAjaxRequest, and wish it work on different browsers as well. I had tried browserbot, but no luck. :-( Thank...

Easiest way to simulate no free disk space situation?

I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app). Indeed, temporarily prohibiting ...

Web testing and keeping track of areas tested

I have a huge web application and I want to use a system which will help the developers keep track of areas (links) that have been visited and tested. I am not looking for a bug tracking system, etc. Just a system that will help me track pages that I have visited, etc. Let me know if there is a tool to keep track of pages physically vis...

Using Android Test Framework

Android provides various packages for testing like AndroidTestCase ApplicationTestCase InstrumentationTestCase ActivityInstrumentationTestCase2 ActivityTestCase I need to know how to decide which package is best suitable for testing my app. Some info is provided in this link ht...

Ruby testing: block vs. method

As I've been writing test suites for a Rails app, I've noticed that there are two different ways to create tests, a test block and a regular method: test "the truth" do assert true end vs. def test_for_something_else assert true end Is there any difference between the two testing structures? When should I use one over the othe...

How to get a window with specified resolution system settings independent

Hello, I am testing a GUI (Swing based) interface and need to do it with special screen resolution. Is there any way to keep original system resolution and display the window of the application under test with specified resolution (system independent) ? Any tool for that kind of things? Thanks, Marcin ...