testing

how to display custom error message using rhino mocks

I'm using RhinoMocks to test an Add() method on a viewModel. I've got one test called AddTest()) which tests everything inside the Add() method, including 1) an item was added the viewModel items list, 2) the item was validated 3) the itemsList pagedCollection view was moved to the correct page the problem is that this requires about 5...

Reason why development is better than testing

Hi, I need some reasons why being a professional developer is better than being a professional tester. Any help would be great thanks. P.S. Also if your opinion is that the reverse is true, it would be good to hear your points as well. EDIT: OK just thought I would try and make it clearer. I am not trying to find out which is actually...

Anybody know of an Android testing community? Interested in starting one?

Hi all, my company just put me on android testing and I'm trying to get started on all levels. Android JUnit and Robotium are great but it's HARD. I've been searching for a test community but it seems like nobody got around to it yet. Does anyone have any tips? Would anybody be interested in starting a community with me? ...

Can I copy the list of HTTP requests made by a web page out of Firebug’s Net panel?

In the Firebug Net panel, you can get a list of all HTTP requests made for the current page. http://getfirebug.com/wiki/index.php/Net_Panel Is there a way copy this list as text, so that I can paste it somewhere else for my own records? I’m doing some optimisation work, and it’d be really handy to save the requests made for pages bef...

How do I interact with an Iframe using Powershell?

I'm trying to automate a website and find myself needing to get to the contents of an iframe. Since this is an internal application, I've put in this sample, which illustrates the error $ie = new-object -com "InternetExplorer.Application" $ie.navigate("http://arstechnica.com/") $ie.visible = $true $doc = $ie.document $maglistcontro...

Unable to simulate a touch on the iphone album

I've been trying really hard (with no success) to generate a touch event in the private "PLAlbumView" class (which is the class where the picture thumbnails are displayed). I've been trying to do that in order to test an End-To-End scenario on an iPhone application I've been working on that uses the camera. So far, I have tried mimicki...

Is there a dbunit-like framework that doesn't suck for java/scala?

I was thinking of making a new, light-weight database population framework. I absolutely hate dbunit. Before I do, I want to know if someone already did it. Things i dislike about dbunit: 1) The simplest format to write and get started is deprecated. They want you to use formats that are bloated. Some even require xml schemas. Yeah, wh...

Rails tests can't find test_helper

Hi folks, I'm trying to run individual tests through ruby test/unit/mytest.rb, but I always get a "no such file to load - test_helper" error. Google brought up a few suggestions, but none of them worked for me. I'm running Rails 3.0, Ruby 1.9.2 (through RVM) on Ubuntu 10.10 Here's what I've tried so far - any suggestions really appreci...

Creating a software pilot testing program

I want to create a pilot testing program , which fits the software development cycle for my software which are to be used by both developers and non-programmers. For the pilot test, we will give our product a "real-world" test(to developers and non-programmers) as well as collect data on the use of the product. What testing protocol s...

C# + Mock service layer?

Hello there, I have just started playing with unit testing / mocks using Moq, and ran into a problem.. I have a Service layer named "CustomerService" which have following code: public interface ICustomerService { Customer GetCustomerById(int id); } public class CustomerService : ICustomerService { private IRepository<Customer>...

How to check if my AVL tree implementation is correct?

Hello, guys. I think I've created an AVL tree implementation, but as AVL Tree is quite a complex structure, I need to test it. So the question is - how can I test it? Have you got any ideas? Up to this moment I have the following tests: basic sanity check - checks that for every node height equals max. height of child nodes + 1...

Are there problems with ActivityInstrumentationTestCase2 in Android 2.1?

After I have set up all the unit test cases for my android application I now also want to do functional testing. But I encouter one problem. As I am developping for the HTC Legend I can, by now, only use android platforms up to 2.1. But in some way it seems that the ActivityInstrumentationTestCase2 won't work. public SupplierSelectoinT...

Testing method: Using 'Private Browsing' for testing sites without cache?

I'm wondering if anyone switches to private browsing mode to test sites sans cache? You know when you have to clear cache to make sure that what you are seing is fresh from the server, surely private browsing is a safe, and faster way to do this, instead of having to go to your settings each time and clearing. Putting this out there to ...

Test Website with IE7

I need to test a website with IE7. Does anyone know if there was a way of doing this in windows7 without setting up a VM with XP+SP2 on it? ...

[Rails] I18n doesn't translate in models through cucumber

Hello, My cucumber scenario tests if my news can be create without a title. This must show "You must specify a title.". In my news model, I have: validates_presence_of :title, :message => I18n.t(:specify, :what => 'a title') and in my en.yml have got : specify: "You must specify %{what}." but when I run my test, the result is "...

How do I test that a 301 redirect takes place with rspec?

I need to test two things: that certain old paths are correctly redirected to certain new paths that the redirect is a 301, not a 302. I'm using Capybara for my acceptance tests, but that can't handle #2. I can test that the redirect happens, but it happens silently, so I can't see that it was a 301. Controller tests can't handle #...

How to detect if a URL fires upon loading a page

We're trying to validate if a URL fires upon loading a web page. Is there a way to do this programmatically using Selenium RC? The event does not appear within the page HTML or DOM. Thanks. ...

Testing this Activity

I have an Activity I would like to automate testing on. The start up of the Activity is like this: Get data from Intent Bind to service and obtain some objects specific to that Activity's intent data Query these objects and print information to screen I have a basic grasp of testing Activities but given how this Activity depends quit...

How to test view page(paginate) with rspec-rails2?

rails 3 rspec-rails 2 in controller def index @users = User.paginate :page => params[:page],:per_pae => 5 end in view User list <% @users.each do |user|% <%= user.name %> <% end %> <%= will_paginate @users %> Now I use rspec-rails 2 to test view. require 'spec_helper' describe "/users/index.html....

Interrupmode test and Bulk mode test

hi ... i want to learn more about interrupmode test and bulk mode test....i search that i could not found any links .. pls send proper link for this testing... ...