testing

How to automatically test if offline mode is working in web application

I have mobile web application that has offline capabilities (via HTML5). I'm currently building automatic build & testing for it (ant, JsTestDriver etc.), until I hit a wall. How can I test if the web application has working offline mode? This is specially painful since if tested by hand; iPhone practically needs full reset between test...

Is there any "advanced" testing framework for .NET?

I am looking for a testing framework that allows me to have: Different kinds(categories) of tests. I want to be able to just run all "fast" tests or all "slow" tests. I know MSTest allows you to create lists and run then run them, but I find it annoying and distracting. I'd like to just tag the tests with attributes as I am developing ...

How best to unit test Spring's SimpleMappingExceptionResolver

I have extended org.springframework.web.servlet.handler.SimpleMappingExceptionResolver to log and return custom error messages to my Spring MVC application. My question is - how should I go about writing a JUnit test to check that the correct errors get returned when the associated Exceptions get thrown? ...

Using soapUI API to create a soapUI Mock object

I try to create a soap UI WSDL Mock Service using the soapUI API. But there seems to be no documentation of the source code. Has anyone done this before or something in that direction? ...

What are the advantages of doing unit testing over plain "assertions" ?

I am currently building an application with one of the models being fairly complex. I am currently using assertions raise "error message" if "settings failed" question is - what are the advantages of using the Unit:testing frameworks over these assertions? ...

Best way to time something in Selenium

I'm writing some Selenium tests in Java, and I'm mostly trying to use verifications instead of assertions because the things I'm checking aren't very dependent so I don't want to abort if one little thing doesn't work. One of the things I'd like to keep an eye on is whether certain Drupal pages are taking forever to load. What's the best...

Unit testing in MS Access

I have an Access database project that is getting a bit to large to try to keep track of in my head. I know it is a little late in the game, but better late than never right? I have Googled but found nothing to my satisfaction. Is there any such thing as a unit testing framework for MS VBA? ...

Java: Test for duplicate Objects in a Collection

Given a List of MyClass objects (and a custom Comparitor myComparitor if needed), what good options are there for checking if the List contains two "equal" objects? Edit: if there are duplicates, return a reference to one or more of the duplicates. Overriding MyClass.equals(MyClass) in this case is not an option. My initial thought is...

How to test devise models, controllers and views using RSpec?

Hi, I am used to generating my rspec controllers & models using rspec_X syntax, e.g. script/generate rspec_model Person script/generate rspec_controller Person However if I want to use devise to create a Person model the syntax is: script/generate devise Person which works OK, but does not create any of the rspec test files / dirs...

Work of a penetration tester?

Im interested in a job involving security and I was curios what its like as a pen tester from the time the client approches you to the time your finished. Like what steps are taken to test an app? Thanks! ...

Is it a bug? Unintended behavior from agreed specifications.

When the specification and the agreed behavior of the application operates without fault, however the outcome turns out to be undesired, what should this be called? Is it a bug? How can it be a bug when the software performs as desired from the specifications and the agreed behavior? ...

Automation Tool: Which one is preferred to test a web application?

I have to test a web application which uses PHP, Javascript and AJAX. I want to automate the testing using automation tool. I am new at automation tool, but manual testing for the web is a big burden. I will use the tool for functional testing and hopefully, it also can help me for system testing. I have found some of automation tools ...

[iPhone app] How to publish an app for testing

Hello ! I'm currently creating an iPhone app and we need some testing with about 20~30 users. Actually we put the app on our iPhone by connecting the iPhone to the computer and debugging the app. But now we need to have a more efficient way to install the app on iPhone but without submitting it to Apple Store and also without the need...

The state of XEN vs KVM for inhouse virtual server farm like live farm

Hello, so we have a life server Farm, conventional stuff not virtualized. This is to stay that way for the time beeing. The servers we are talking about are: Loadbalancer, DB master, DB Slaves (2x), Webservers (2x), CMS server. All in all 7 servers per farm. We want to have one to many rather exact "copies" of the life structure for in...

Is there any technique for profile testing application in isolation?

I am a dummy in profiling, please tell me what you people do to profile your application. Which one is the better, Profiling the whole application or make an isolation? If the choice is make an isolation how you do that? ...

Configuring server startup of SeleniumRC in NetBeans

Hello! I want the logs from the Selenium Server Console write to file. I know how to do this if i start server frome console (cmd.exe) java -jar selenium-server.jar -log logfile.txt But i run selenium test in NetBeans and selenium server start from NetBeans. I can to set port and way to start for the selenium server screenshot url:...

Soapui transfer problem; getting NoClassDefFoundError

I wrote a suite of tests using soapui and need to transfer it to another person to run when I leave. I wrote a script that helps me run all the tests on the command line and it works fine on my system. When we try to run it on his system however, we get a few exceptions and cannot find the difference between how it is run on my machine ...

Test::More doesn't know if test dies - so how do I test?

I'm collecting a bunch of subroutines that are common to a bunch of my scripts into a module. (I should've done this way earlier, but started out with inherited scripts.) I'm modelling my work on the very helpful example here, using Test::More and Module::Build All of the subroutines that read or write from files all include a line op...

Regression testing on Apple WebObjetcs GUI

Hello. I have recently started a new job in a company that depends heavily in an application developed with Apple Web Objects. It happens that this company does not have a way to make automated tests whenever a new update is received, weather with bug fixes or new features. We have no access to the code since it is a proprietary applica...

How to speed up single (last) migration test?

I'm writing my migration SQL against tests. Because the migration is the last one and we've got about 300 migrations, it's DAMN SLOW to get there, as it migrates from bottom up every time. Any ideas how to speed this up a bit? ...