How to tell selenium to use test database?
I'm using selenium-client to run a few tests, but Selenium seems to be using my development database. How can I point it to use my test DB? ...
I'm using selenium-client to run a few tests, but Selenium seems to be using my development database. How can I point it to use my test DB? ...
When I want to run all my unit tests, I run rake test:units. To run all my functional tests, I run rake test:functionals. If I want to run all the test cases in one file, I run ruby test/unit/username_test.rb A few people have been telling me I should run rake instead such as rake test:units TEST=test/unit/username_test.rb For runnin...
Hi all, We are currently using Watin to do UI testing on our web application. In effect we are doing integration testing from top to bottom since we are using a test database and not mocking. In order to make sure the test database is in an expected state we have previously been using SQL Server's snapshot feature to rollback the data...
How do you effectively test code that you wrote? I find that it is very hard to tiger test code that I have written for my site because part of me feels that I don't want to find bugs in my code because that shows I'm not perfect. (Even writing that I might not be perfect bother me a little bit.) I believe in unit testing, but lately ...
Am I a bad person if I use use Test::More qw(no_plan)? The Test::More POD says Before anything else, you need a testing plan. This basically declares how many tests your script is going to run to protect against premature failure... use Test::More tests => 23; There are rare cases when you will not know beforehand h...
Hello all! I've been experimenting with creating an interpreter for Brainfuck, and while quite simple to make and get up and running, part of me wants to be able to run tests against it. I can't seem to fathom how many tests one might have to write to test all the possible instruction combinations to ensure that the implementation is p...
Upgraded my laptop to Ubuntu 9.04 and runing latest trunk of django and my test suite has tripled in time to run. Python2.6 Mysql Django 1.1 beta 1 SVN-10137 ...
I am packaging up an rpm file which has a %postinstall section that detects certain conditions and runs a suite of unit, function, and system tests. I am getting some push back that it exposes some of the internal structure as I use some of the same environment variables the code itself uses for diagnostics. Thoughts? UPDATE: I am no...
Duplicate: Type of Projects where Unit Testing is useless When to unit-test vs manual test Is Unit Testing worth the effort? I am wondering why I should write tests for things that I already test manually myself. I don't write rspec tests or anything like that. To test, I'll write something then go to the browser and make sur...
What are some of the tricks or tools or policies (besides having a unit testing standard) that you guys are using to write better unit tests? By better I mean 'covers as much of your code in as few tests as possible'. I'm talking about stuff that you have used and saw your unit tests improve by leaps and bounds. As an example I was tryi...
Our group is building a process modelling application that simulates an industrial process. The final output of this process is a set of number representing chemistry and flow rates. This application is based on some very old software that uses the exact same underlying mathematical model to create the simulation. Thousands of variables...
Hello everyone, I want to have a stress/performance testing for my content management site, especially for hosted streamed video part. I am using IIS to host the videos. More specifically, I am using the new Windows Server 2008 x64 and IIS 7.0. The confusion is, I plan to write code to start a lot of threads, and in each thread I wil...
I upgraded rails to 2.3.2 from 2.1.1 yesterday and a bunch of my tests started failing. When I was running under 2.1.1, the test server was running on port 3000 so I had a HOST_DOMAIN variable that included the port - HOST_DOMAIN = "localhost.tst:3000". This is so my assert_redirected_to's would succeed. Now, however, it seems that th...
I'm trying to test some streaming file upload/download code that I've just written, but I need a huge (bigger than my memory, as in > 4GB) file to test on. What's a good way to quickly generate a file of a specific size (but no particular data inside)? I know that I could just look around my hard drive for an appropriately-sized file, ...
I have a JMeter test with 2 Thread Groups - the first is a single thread (which creates some inventory) and the second has multiple threads (which purchase all the inventory). I use BeanShell Assertions and XPath Extractors to parse the returned value (which is XML) and store variables (such as the ids of the items to be purchased). Bu...
Following on from http://stackoverflow.com/questions/53738/how-do-you-test-the-performance-of-a-website : What tools/sites/services do you use to find out the performance of your website from multiple locations around the world? There are always complaints that sites are slow under certain circumstances (especially from physically-di...
Can Soapui free edition assert between outputs from two requests? I want to check if a value from a output is equal to value from another output. ...
Is there anybody out there writing unit tests for their TSQL stored procedures, triggers, functions ... etc. I've recently started making database and restores and installs part of our automated Cruise Control build process. Now I'm thinking about taking it to the next level where we do the install, then run through a list of stored pr...
As a developer, can I safely upgrade to IE8 and use its IE7 compatibility mode to test how sites look in IE7? For IE6, I have a virtual machine and it is quite inconvenient. I don't want to upgrade to IE8 and then have another virtual machine now for IE7. Or is IE7 compatibility mode really different and I can't rely on that? ...
Given a series of incoming items, I want to assign each one to a bucket as it comes in. The bucket can either be a new one (one that has never been used before, of which there are an infinite supply) or it can be an existing bucket. If I look at the number of buckets with one item, the number with two, the number with three, etc., I want...