testing

Are open source automated testing tools and frameworks better than commercial products ?

About three years ago I switched from using commercial testing tools to using an open source testing framework (WatiN), and a UI automation framework I developed myself. Since doing this I think life is much better using these libraries and Visual Studio, than expensive dedicated testing tools with either their own languages, or VBA. A...

Count pattern in simpletest (PHP test framework)

Hi How can I test if there is a string only once in a site? I use the WebTestCase from simpletest. ...

Ruby on Rails functional testing with the RESTful Authentication plugin

I started writing functional tests for my rails app today. I use the RESTful authentication plugin. I ran into a couple confusing things I hope someone can clarify for me. 1) I wrote a quick login function because most of the functions in my rails app require authentication. def login_as(user) @request.session[:user_id] = user ? u...

Unit testing asp.net mvc - Can viewengine find the view?

Hi I am finding that a common breakage point in our mvc setup is when the controller returns return View(); or whatever, and the viewengine cannot find the view. I would like to be able to test my controllers and then run ExecuteResult on the resulting ViewResult but the underlying ViewEngine is so tied to virtual directories that...

Recommended tools for test engineering

Does anyone have any recommendations for software to assist with the management of test cases - those created and maintained by quality engineers, not a part of the developers work? ...

How do you prefer to organize your test data in Ruby On Rails?

How do you prefer to organize your test data in Ruby On Rails: fixtures, object factories or anything else? Why? ...

Automate testing on Lotus Notes 8.5

Hello, The company I am working is looking for a way to automate functional tests on Lotus Notes 8.5. We have tried different tools including Testcomplete 6 and Rational Robot 7. But we have found issues recognizing objects and implement verifications. Has anyone try to automate this type of tests? Which tools(approach) you recommend...

Introducing Test Driven Development in PHP

My workplace consists of a lot of cowboy coders. Many of them are junior. Which coincidentally contributes to a lot of code quality issues. I'm looking for suggestions on how to best wane my team into using TDD (we can start with Unit tests, and move into regression tests, and later more automated testing). Ultimately, I want us to l...

How to run a script embedded in the page in Selenium IDE?

I'm testing a page with Selenium IDE and want to execute a method already in the page. I've tried getEval(window.name.space.function()) but it just returns window.name is undefined. Is this possible? ...

email reports from cruisecontrol?

is there a way to have cruisecontrol to email test result in through the config file? C:\Program Files\cruisecontrol\test-output\index.html this is my current publish setting in the config.xml <publishers> <currentbuildstatuspublisher file="${log.dir}/status.txt"/> <htmlemail buildresultsurl="http://${build.server}/bu...

How do you unit test classes that use timers internally?

Like it or not, occasionally you have have to write tests for classes that make internal use of timers. Say for example a class that takes reports of system availability and raises an event if the system has been down for too long public class SystemAvailabilityMonitor { public event Action SystemBecameUnavailable = delegate { }; pub...

Functional testing redirection in a Rails controller

I'm trying to make it so when a model is created via created action it redirects to its show action. That part works fine, but I can't get my functional test to behave. These tests have been modified from what the scaffold provides. def setup @thing = Factory(:thing) assert(@thing.id, "Virtual fixture not valid.") end def...

how to save response when saving a SoapUI project

Hi All, I am using SoapUI 2.5.1 - evaluation version In a testcase, how to save the response messages along with requests in a SoapUI project ? Here is what is happening currently: When I create a Web service SoapUI project and send SOAP request for an operation, I get a response XML. Now after saving the soapUI and exiting the tool ...

do you know any tutorial for MBUnit?

Hi, It looks a bit hard to find documentation about MBUnit, do you know any tutorial? Thank you! ...

Open Source alternative to Mathworks Polyspace?

Anyone knows about an open source project (or maybe just free to use in commercial projects) that is an alternative to Mathworks Polyspace? I'm searching for tools for code checking and found some good alternatives for static checks, but PolySpace seems to offer so much more power. I think there's no real alternative out there, but may...

How to test functionally that something should happen at given time?

I'm writing a web application which contains a kind of schedule. After a certain action, the schedule is updated and when the user visit the page that day something happens. Any ideas how to write a functional (acceptance) test for that kind of functionality? I'm writing these end-to-end tests using Selenium. The only idea I have is t...

Software Test Automation - Masters Thesis

Hi, i am trying to write a thesis about Software Test Automation. I plan to compare the two Approaches of Recording and Programming of Test Scripts, and to discuss about several Automation Frameworks, for example Abbot, Selenium, Yemmy, FEST, etc ... Also in my Thesis will be a short overview about Softwaretesting Techniques and maybe a...

Difference between a Local Variable and a Variable Called from a Method? C#

I would like to know whats faster. Help me out. I have a variable declared in a Method like so: public static Regex FindNumber() { return new Regex(@"\d+", RegexOptions.IgnoreCase | RegexOptions.Compiled); } As you can see it returns a Regular Expression. I also have another Method that looks like so: private static string...

How to verify whether two SQL Server databases contain equal data?

Given two MS SQL databases which are known to have identical schemas, how should I tell whether they contain identical copies of the data? I'm using MS SQL Server 2008 Express, and coding in C# and v2.0 of the .Net framework, using ADO.NET APIs. The two database instances are both on the same SQL server. Background: I've written softwa...

How does your organisation setup testing data?

I work as a tester for an organisation that has a web service as it's critical application. Currently we load massive amounts of test data through the web front end, as this is how it would be done in the real world. This gives the data an amount of legitimacy and prevents errors in the format of the data. However it is very time consum...