automated-tests

How do I automate unit tests for a console application in TeamCity?

I've written a console application that has a number of unit tests and I'm wanting to include it in my nant build script so that it will be run on our TeamCity CIS. Unfortunately I'm not quite sure how to do that. The nant script has examples of current projects that have been added...they they all have to supply the assemblies that nee...

Testrunner/framework for both .Net and Javascript?

My team develops software using multiple languages. We have a server app in .Net and much of our client code is written in JavaScript. (The client code is actually for xulrunner applications, which don't have good testing tools right now, but I hope that is overcome someday.) I like the idea, though, of having one testing tool that ca...

Automated testing of VBA UserForms- tools and/or techniques?

I am looking to start automated regression testing on a fairly large Excel add-in that revolves around a GUI composed of a few modal UserForms with standard controls. The main problem is that most of the automated testing tools I have looked into (Rational Robot, AutomatedQA TestComplete, Network Automation Automate etc) don't fully sup...

Testing a test?

I primarily spend my time working on automated tests of win32 and .NET applications, which take about 30% of our time to write and 70% to maintain. We have been looking into methods of reducing the maintenance times, and have already moved to a reusable test library that covers most of the key components of our software. In addition we h...

Best way to measure execution time in automated regression tests

I have some code that I want to measure the speed of while it runs continuously in automated regression tests. The purpose of this would be to alert me to changes made to the code which have had a negative impact on performance. In pseudo-code, I want something like this: cpuTimer.start runTest cpuTimer.stop diff = cpuTimer.getDuratio...

Am I unit testing or integration testing?

I am starting out with automated testing and I would like to test one of my data access methods. I am trying to test what the code does if the database returns no records. Is this something that should be done in a unit test or an integration test? Thanks ...

Automating QA on Flex Application

I have a Flex Application that needs to be tested and our QA department is really adament on using some form of automated-testing tools like HP's QuickTest Pro (QTP). However, QTP requires that you write some custom code if you wish to automate some home-made components... Unfortunately, we have some 3rd-party components which we do not ...

How can I simulate a disk full error in a Windows environment?

I have to write a bat script for a test scenario where the software that we are testing fails to write to file due to a disk full error. The test script must be automated, so that we can run it on overnight tests, for example. The test script must also work at different computers, so installing a software like a virtual machine wouldn't ...

QTP: Parameterize a Database Checkpoint

I have a database checkpoint in QTP (HP QuickTest Pro); this checkpoint works if I pass it a static query, but I need to be able to pass in parameters or build the query programatically. I also know how to query the database programatically from QTP, but don't see a way to create a checkpoint based on its results. Specifically, I want...

Testing outlook plugins

What tools are good to do automated UI testing of Outlook plugins? We are developing plugin in VB 6.0. We are using Microsoft's UI Automation framework. Any best practices regarding the framework? Any other tools which should be explored? ...

What automated build systems are you using? How long do your builds take?

My current project has 5 separate automated builds that kick off after each check-in: Unit Tests (DB calls mocked out): ~6 Minutes Integration Tests (just to the DB): ~40 Minutes Website 1 UI (Selenium, from UI to DB): ~80 Minutes Website 2 UI1 (Selenium, from UI to DB): ~90 Minutes Website 2 UI2 (Selenium, from UI to DB): ~100 Minutes ...

GUI mapping strategy in test automation

In my test automation practice I always use a gui mapping strategy that reduces a maintenance effort. So for example, if I need to identify the "Google Search" button (www.google.com), its XPAth will be //input[@name='q'] rather than/html/body/center/form/table/tbody/tr/td[2]/input[3]It's clear that in the second case a little change in...

Helps participating in an System Verification Test team getting a better programmer?

Hi all, I am developing applications for 9 years now - meanly Java. Now am asked to participate in the SVT team for the next release. Overall this means installing complex system setups and running specific user scenarios on these setups as well as doing long runs and load runs. Overall I am positive about it as I will learn something...

QTP: Get list of all links in an E-mail

I'm "developing" a test plan in Mercury/HP QuickTest Pro 9.1, in which I must extract a list of all links in an E-mail and perform logic against each of them. In this case, I am using Webmail, so the message will appear as a web page; though I hope to use Outlook later to replicate a more realistic UX. I am a Developer, not a Tester. C...

How to use condition in a TestGen4Web script for a child popup window?

I have TestGen4Web script for automating testing on a web-based user interface that has a popup window (hey i didn't write that ui..). In order to write a complete test script that branches the flow based on the some presence of some content in the popup window, I need to write a simple if condition that does something like if document.g...

QTP: Object Required errors when Object is valid

I have the following VBScript in a reusable action: 'Gather links Browser("1").Navigate "http://InternalWebmail/something/inbox.nsf" set oDesc = Description.Create() oDesc("micclass").Value = "Link" set links = Browser("1").Page("Webmail").ChildObjects(oDesc) Dim links2 links2 = "" 'Filter out irrelevant links For i = 0 To links.Count-...

How to interview automation tester?

I have to interview automation testers, with experience in commercial tools like QTP, Rational Functional tester, open source tools like Watir etc. What interview strategy should I have? ...

JMeter crashes XP when performing JDBC request

I'm using JMeter 2.3.2 and XP SP3. When I try a JDBC request, XP crashes. This is not very convenient. This is the first time I've used JMeter, so I'm looking for inspiration as to where to look. Its with a fairly simple JDBC request (simple select, without parameters, aggregated report etc). The database is SQL server, the correct ja...

Does anyone know of a good Perl unit test generator?

Does anyone know of a good Perl unit test generator? ...

Setup of TFS 2008 for automated testing.

I'm confused. I have TFS installed on my development server, which also doubles as the build machine. The builds work fine when I check-in code, but when the build attempts to run the tests I get an error: MSBUILD : warning MSB6004: The specified task executable location "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest....