automated-tests

How to get the instance of the dialog (like DatePickerDialog, ProgressDialog, TimePickerDialog) after it pop up

the precondition: I'm working on the android automated test, so we can not touch the source code of app, but just test it. the question: How to get the instance of the dialog after it pop up? After we get the instance of it, it will be so convenient for the further operation, like directly set the value of it, instead of send the k...

TypeInitializationException when running mstest from command line

We have a subset of unit tests which until recently have always been run through Visual Studio. I am now working on a continuous integration setup which will run the tests. All of the tests pass when run through Visual Studio but when I attempt to run them from the command line using mstest they fail with a "TypeInitializationException...

Testing File Creation Wrapper C#.Net - Thoughts

Hi All, This is probably a noob question that I will get slated for but here goes... Sorry for the length tried to keep it as short as possible. BackGround I'm working on tidying up a code base that I inherited in my new role. So I'm introducing tests as I work on sections/Bugs/New Features. One of these features is an invoice prin...

Automated SQL Server Unit Testing

I know there are ways to automate SQL Server "unit tests." But my question is slightly different. When validating requirements we write a series of SQL Scripts that basically return nothing if success. So basically its like Execute Query Execute another Query Run SSIS Package Run Query. And example with a little more context ...

Rhino Mocks 3.5 failing in TFS integration build while running test lists

Build server: TFS 2008, W2003 Error message: System.IO.FileLoadException: Could not load file or assembly 'Rhino.Mocks, Version=3.5.0.1337, Culture=neutral, PublicKeyToken=0b3305902db7183f' or one of its dependencies. Access is denied.. This happens only aprox. last 2 weeks. Same tests were successful before and still are when runn...

Where can i find the DTD or XML Schema of surefire generated XML (TEST-<testname>.xml) file?

Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file? ...

Is it common to write integration tests before writing unit tests?

Is it common to write integration tests before writing unit tests? Is it conventional, a good idea, or best practice? It just seems like a logical thing to do in my mind, especially when working with some 3rd-party API for the first time: You need to know how to use the 3rd-party software before you can test your own code for proper in...

WCF integration testing in TeamCity

I want my integration tests to run on each commit in TeamCity. What is the good way to get my WCF service running automatically for the tests? WCF service is part of the solution that is tested. Currently I self-host the service in the tests. host = new ServiceHost(typeof(...), url); But I can't apply my actual IIS configuration file...

Writing test code for verifying database entries when testing an API

I'm writing test code to test a client-server application. The application under test consists of an application that runs on Tomcat or another Java EE application server, and client jars that expose an API. I'm basically writing test code that uses this client API to connect to the server. In addition to extensively testing the ...

Is it wise to defer unit-testing until integration tests pass in scenarios where behavior of a 3rd-party API is largely unknown?

I don't mean defer all unit-testing until an integration test passes. The unit tests I'm referring to are those that verify that the SUT interacts with the 3rd-party mystery API correctly. The rationale for deferring these unit tests is that they verify something that is unknown. If I don't know how the 3rd-party mystery API works, ho...

How can I make a GUI test focus on and the same time continue working with my PC ?

I understand that Two users cannot work on the same machine at the same time, and Test Compleate interacts with GUI in the way a user would do.But probably there is some way to solve this problem? ...

How to developer an Automated Test and associate it with a Test Case in Visual Studio 2010 and Misrosoft Test Manager

Hello! I am trying to find how I can write automated test and to associate it with test case in Microsoft Test manager. I have found the article http://msdn.microsoft.com/en-us/library/dd380741.aspx#TestPlan , where have been described in general how to do it, but some moments is not clear for me. I will shortly repeat some main ideas fr...

Book suggestion for Java web application testing

Hi. Could you recommend some books on Java web application testing? Thanks. ...

MSBuild to run unit tests

I am trying to configure CruiseControl .net to build our repository code periodically and run the tests included in the solution. I have configured the retrieving code from the svn server and building part. But I am unable to run tests on it. MSBuild keeps on complaining that. error MSB4057: The target "Test" does not exist in the ...

Fastest rails test runner: spork and zentest?

I ran across a thread about slow rspec tests that made me wonder which rails test runner configuration will result in the fastest running recurring tests? I'm aware that ZenTest / autotest-rails can be used in conjunction with spork, but is that the fastest option? ...

How can I include test classes in exploded war for integration testing using Maven, Jetty & Spring?

I am trying to get integration tests going with Spring, Maven and Jetty. I have got a Jetty server to start up running my app before the integration tests start using the Maven Jetty plugin and a run-exploded pre-integration-test goal. This works well for testing using net.sourceforge.jwebunit.junit.WebTestCase. What I need to do now i...

Automate a graph(graphical object control) in testing C#

I need to write a class to handle the graph histogram. We will be displayed three curves which will have 3 distinct colors. The issue now im facing is tat when the curves overlap each other at a certain point say starting point, ill not be able to pick the co-ordinates of tat curve. The control of the curves is of Graphical objects. Wil...

Is there a multi-process unit testing framework / junit addon?

Imagine two servers (each within an own jvm process) which communicate using some form of messages (e.g. simple producer/consumer) I'd like to write unit tests that will test the behaviour of these two servers. My questions are: Are there some frameworks (or a junit addon) for this problem? I'd like to run a junit test class (or even ...

jwebunit: how to assert that some row in a table contains the actual values

Hi, My web page displays the following table( in an html format, but simplified here) Item# Item_Description Price Status 100 COOKIE $68.00 Eligible 123 RADIO $94.00 Eligible 300 DIAPERS $54.00 Returned How do I use jwebunit to make an assertion that there is some row in this table with Item#=300 and status = "Returned"...

How to create an if statement in selenium that would run if a certain box was not checked?

I am trying to run an if statement in selenium that would verify if a checkbox was checked and if it was not perform a certain action. I tried if (selenium.verifyChecked("checkbox")=false){ //perform actions } else { //perform different actions }; and it said that that did not work. How would you do it? ...