testing

Is there a automation framework for gtk# applications?

Is there a automation framework for gtk# applications like white or NUnitForms? ...

Accessing names defined in a package's `__init__.py` when running setuptools tests

I've taken to putting module code directly in a packages __init__.py, even for simple packages where this ends up being the only file. So I have a bunch of packages that look like this (though they're not all called pants:) + pants/ \-- __init__.py \-- setup.py \-- README.txt \--+ test/ \-- __init__.py I started doing this because...

Final method mocking

Hi! I need mock some class with final method using mockito. I have wrote something like this @Test public void test() { B b = mock(B.class); doReturn("bar called").when(b).bar(); assertEquals("must be \"overrided\"", "bar called", b.bar()); //bla-bla } class B { public final String bar() { return "fail"...

Testing... how do the pros do it, and what techniques can scale to single-person development?

I've been writing software for years, but have never mastered the art of testing. My typical testing includes thorough run-throughs on my machines, and then testing in various operating systems via VMware. Mainly a brute-force play-with-it-until-it-breaks-or-doesn't approach. Where possible I work on actual hardware, but this isn't al...

Question on TestNG

TestNG doc says create an xml as below. <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="Suite1" verbose="1" > <test name="Regression1" > <packages> <package name="test.sample" /> </packages> </test> </suite> Where should this file be? ...

How to automate Lgeacy (mainframe, cobol, AS40,magic) applications?

we are running a huge automation progect for a major bank in Austria. We need to automate several legacy terminals/systems - namely mainframe, cobol, AS40,magic applications . what is the best tool to do so? did you manage to automate legacy apps with QTP? any other tools you can recommend? ...

Bulk data set up for Unit Test cases

I have developed an application with Spring MVC that deals with bulk data insert/update. For ex: There are some use cases that insert a record with 100-125 attributes. For bulk data insert, I'm hard coding the values to be inserted in my Unit test class. I have Transfer Object to carry the data, so i'm populating these TOs in my Unit ...

How do I test my iOS Apps

Hello, My question maybe silly, but can anyone coach me? Except doing some test(most likely white box testing) while coding, after the App was built, do we have some testing tools or special method for doing the test? All I can imaging for now, is only manual testing the functionality of my App. Thanks everyone. ...

Android: Application crashes while testing through Android Instrumentation

I have separated java code from Android code and have two projects. Android dependent on Java project. Now i want to get the memory trace of the Java project on Android. For that I have created Androd Junit Project implementing Android Instrumentation, and a dummy android project dependent on my actual java project.(as I only want to get...

Testing the client side of a web service without having the web service available.

I am developing a PHP script that has to make some calls to a web service. This web service is running on the LAN of our client. This means I do not have access to it yet. I will go to the client to test it, but would like to be able to test my code before I go all the way over there. Is there an easy way to set up some kind of fake web...

Create request with SOAP ui

Is it possible to create soap ui request with data ? right now I know how to create new request which gives you template what you should send to your webservice (which is read from you wsdl), is there a way so your requests fills with data based on type(ex: String,Integer, Date) from wsdl, from soap ui or any other test tool ? thank you ...

User login while testing with rspec and authlogic

I have a spec for testing a controller as below require 'spec_helper' describe ProductsController do setup :activate_authlogic describe "user not logged in" do it "should not GET index" do get :index response.should redirect_to(login_path) end end describe "user logged in" do before(:each) do UserSession.create :username => "rohit...

Can't get RSpec view spec to pass

I've got the following spec in spec/views/users/new.html.erb_spec.rb: require 'spec_helper' describe "users/new.html.erb" do it "displays the text attribute of the message" do render response.should contain("Register") end end But when I run the test it fails with: ActionView::TemplateError in 'users/new.html.erb displ...

how can I stop all tests from inside a test or setUp using python's unittest framework

I'm extending the python 2.7 unittest framework to do some function testing. One of the things I would like to do is to stop all the tests from running inside of a test, and inside of a setUpClass method. Sometimes if a test fails, the program is so broken it is no longer of any use to keep testing, so I want to stop the tests from runn...

Bookmarklet to swap (live and testing) URLs in browser

I used to use the following bookmarklet code to swap URLs between my site's staging server and live server, so I could test that staged pages had been successfully pushed live: Staging URL: www.stage.site.com/folder/page.html Live URL: www.site.com/folder/page.html Here's the code for that bookmarklet; the script works in both directi...

PHPUnit Test How Many Times A Function Is Called

I'm working on a test in phpunit and I'm running into an issue. I have a public function on my class that I am trying to test. Depending on the parameters passed in to the method, a protected function also in my test class will be called one or two times. I currently have a test in place to check that the return data is correct, but I...

Clarifying questions in testing interview

Hi, Should I ask questions to interviewer to fully understand the functional and non-funtional requirements of a product if interviewer asks me to test that product and does not specify any other detail? For example, if interviwer asks me to test a Search Button – should I ask the following questions: How fast the user should be able ...

How to revert the database back to the initial state using dbUnit?

I am new to automated testing and dbUnit. So I would appreciate your advice. I am going to create a test suite, that will run the following way: create an in-memory H2 database run DDL scripts to create tables run dbUnit to insert initial data (let's call it STATE0) that will be used by all tests. run tests Till there it looks nice ...

default_scope not working with sessions in my tests

Iam creating an application where a user can have many organisations each organisation has it's own data, things work fine on development, but when I'm in test mode it doesn't work. For example I have a class Tax class Tax < ActiveRecord::Base # This shouln't be neccesary according to documentation before_create :set_organisation_id...

Missing Table with Simpletest in CakePHP reloaded

Hey, the solution given here: http://stackoverflow.com/questions/693071/missing-table-with-simpletest-in-cakephp used to work for me. But now I'm facing weird problems like empty DESCRIBE statements: Query: DESCRIBE Query: DESCRIBE Query: DESCRIBE Query: SELECT UserDatum.nome FROM AS UserDatum WHERE user_type_id IS NULL ORDER BY no...