testing

Shoulda helpers don't work

I have one spec: require 'spec_helper' # hmm... I need to include it here because if I include it inside describe block `method_missing` exception raises. include Shoulda::ActionController::Matchers describe CategoriesController do include Devise::TestHelpers render_views context "new should render template :new" do setup ...

What are the pros & cons of functional testing frameworks for a new grails application?

I've got analysis paralysis looking at all the different functional testing options for a new grails (v1.3.4) application. I've looked at WebDriver/Selenium (which I've used before) WebTest/Canoo Geb Tellurium Grails Functional Test and there must be others. I think some of the criteria that I would use to make a decision include (in...

Including a hyphen in a regex character bracket?

$.validator.addMethod('AZ09_', function (value) { return /^[a-zA-Z0-9.-_]+$/.test(value); }, 'Only letters, numbers, and _-. are allowed'); When I use somehting like test-123 it still triggers as if the hyphen is invalid. I tried \- and -- ...

What are popular ways to pre-populate the database for Selenium testing?

If I have a test that requires X widgets as a precondition, I'd like to avoid the tedious process of making X widgets in the test through the front-end. The main alternatives appear to be either having a stated DB dump that is loaded for each test run, guaranteeing a pre-determined state (the dump file is generated by doing the precondit...

What are Google Test, Death Tests

I saw the documentation of that feature is seem pretty major since it's in Google Test overview features and detailed in: http://code.google.com/p/googletest/wiki/AdvancedGuide#Death_Tests They look like standard assert() but they're part of Google Test, so a xUnit testing framework. Therefor I wonder the real usage or advantage of usin...

[unit-testing] Distinquish between 0 and some datasets from db (both valid cases)

Hi, currently I'm using phpunit to write tests for some functions that access a mysql-database. Now I'm unsure what to do to distinguish when a function returns some datasets or nothing (which both are valid function results). Should I use different tests (so that one of them will fail in any case) or is it in this case ok to use an if t...

Interview question please help

How would you test a ‘Mobile’ version of IM? What are some key differences between testing this version versus a desktop application? ...

Set up Android testing in Intellij IDEA

Have someone got any tutorials for how to do testing on Android in Intellij? I am looking for resources similar to what you find for Eclipse with the ability to create a test project for my android project. ...

Testing EJB2.1 to EJB3 migration

We would like to migrate an application written using EJB2.1 beans (both Entity and Sessions beans) to EJB3 to improve on maintanance and use new features in the EJB3 spec. How would we do the migration and give the users the guarantee (if any) that the migrated system still works just as the old one. The original app didn't have test c...

How to test multiple activities on Android

Hi Im trying to create some jUnit tests for my Activities. The main activity seems easy to test by extending ActivityInstrumentationTestCase2<Main> and when i click "Run..." the app and the tests are installed on the emulator and runs fine. I can see that the main activity is starting. The problem is that I can't figure out what I nee...

Is it bad practice to commit placeholder/design text into source control?

Is it bad practice to have placeholder data in your source control repository? For example, when building a view is it ok to commit something like this: ... <span id="username">LoremIpsum</span> <span id="karma">999</span> ... ...or should I put the variable names in during design, and only view the work-in-progress view via some sort...

Is software testing actually done on professional projects?

I have a few questions about software testing in professional development environment on real-client projects. Projects developed by professional software companies that are actually going to be sold. Over the years of my professional career I've seen very little systematic testing done on real life projects. Especially bespoke projects...

Is there documentation for writing tests (and building) with Module::Build?

So I've made a few modules for my own use, and I'm wondering if there is any documentation about how to write tests for perl modules using Module::Build. The specific problem I'm running into is that I've got three modules, HomeBrew::IO, HomeBrew::Stats, and HomeBrew::Bio, and I can't figure out how to build or test them separately th...

How do I run a single test with Nose in Pylons

I have a Pylons 1.0 app with a bunch of tests in the test/functional directory. I'm getting weird test results and I want to just run a single test. The nose documentation says I should be able to pass in a test name at the command line but I get ImportErrors no matter what I do For example: nosetests -x -s sometestname Gives: Trac...

Missing maven dependency using nexus setup

I am trying to build a maven project to test out some testing software - Arquillian. I setup nexus and added the jboss repositories to the bottom of the public group. When i run mvn test i get this error: Missing: ---------- 1) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT Try downloading the file manually from the projec...

When I move a WordPress blog, what do I have to change (database/file) to have the site test-run without changing the DNS?

i.e. http://xx.xx.x.xxx/wp-login.php redirects to blog at existing site www.my-blog.com ...

Rails 3: How to test router scope?

Hi, I'm using Rails 3.0 and I have the following in my routes.rb files: scope "/:location" do resources :agents end So I can do this: agents = Agent.where("location = ?", params[:location]) (There might be a better way to do this..? Mostly I want URLs like: myurl.com/london/agents) Anyway, my problem is with the tests (which I...

Logcat standalone client

I have developed android application. Now it is time to give it to the beta testers. Is there the standalone application witch will collect LogCat output? I do not want to force testers to install whole android development environment. I was thinking about application witch will collect logs through usb port and display them to the PC c...

It is worth moving from tester to business analyst?

I don't know if it's worth to change profession from tester into business analyst. Do you have some experiences with such transition? What are ups and downs of such move? Is business analyst more profitable? I would be grateful for any help. ...

Why is a CListCtrl responding to LVM_GETVIEW with LV_VIEW_ICON when that CListCtrl's view/display style is LVS_REPORT?

I'm working on UI-driven test automation, and the app under test (AUT) has a UI implemented with C++/MFC/Prof-UIS. My team employs Ranorex to author the tests. Experience has shown that Ranorex does not properly navigate the list controls (instances of CListCtrl) in the AUT. They all have multiple columns, and Ranorex will only retrieve ...