testing

Fitnesse deployment practices.

Is there some documentation on the best ways to organize the deployment of Fitnesse for use in projects? I have many questions: How should it be stored? Should the whole fitnesse root be stored in SVN? How do you deal with acceptance tests that span multiple svn repositories? We have some code that runs only on linux (server) and othe...

Find specific button with Ruby's WIN32API

I'm working on some scripted GUI test for a windows C# .net app. I'm using Ruby to drive the testing and my feet are officially wet in the realms of WIN32API - but I'm certainly not over-confident with it. As a mater of fact, I feel like I'm missing some fundamental understanding. At this point, the only way I know how to gain access ...

How to unit test this ?

I've been playing around with .NET SpeechSynthesizer lately. and I've got a method that takes in a string and creates a .wav file out of that string. but how do I unit test this method ? seems to me like this situation is one in which unit testing cannot help you. am I right ? ...

test suite for CSV specification?

i am facing some problem for writing test suite (test cases)for basic CSV specification . i have no idea how to write that? can anyone help? ...

Website Access Test From China

To all the Chinese members of StackOverflow, a quick request. I'm performing a series of tests on a university website and want to ascertain if it can be accessed from all parts of China. So far, sites like JustPing have reported success from major cities like Shanghai, Beijing etc. I'd still like to go ahead and get a report from the av...

Visual Studio Test Project

I've created a new MVC2 project as well as a Tests project within my solution. I have not yet done anything to the default tests nor am I experienced with them. I've seen a webinar on web tests and measuring performance using Test Professional. Are these completely different? Can the Tests project inside my solution be used by Test Prof...

Automated SQL Server Unit Testing

I know there are ways to automate SQL Server "unit tests." But my question is slightly different. When validating requirements we write a series of SQL Scripts that basically return nothing if success. So basically its like Execute Query Execute another Query Run SSIS Package Run Query. And example with a little more context ...

Is there any jquery simulators where I can practice usage of selectors

Hi all, I tried to search on net but I couldn't find any jquery simulators. By simulator I mean a page where I can write jquery code and see what it's executing, what is selected, how jquery selectors work etc. Is there anything similar on net? Thanx Marko ...

How does JUnit find the eclipse plug-in being tested?

I am writing a plug-in (ClassRefactoringPlugin) that examines source code in Eclipse 3.5.2. The plug-in contains a CallData class that examines a Java source file and figures out which Java elements are called from a method using JDT operations. I wrote a JUnit 4 test for this class that also resides in the ClassRefactoringPlugin proje...

How can I modify the value of a default status in Mantis?

I tried to change values in config_inc.php like $g_status_enum_workflow[RESOLVED] ='50:assigned,89:confirmed,90:closed';. With no surprise, it doesn't work. But I've searched all files in mantis folder, just can't find another place where "confirmed" is defined as 40. Is there any way I can do this? And, oh~ why am I doing this? We are ...

VS 2010 Error Generating Unit Tests

I have one .NET 4 DLL for which I'm having trouble generating unit tests. I'm using VS 2010 Standard. Every other project in the solution will generate unit test stubs for classes just fine. For the other assemblies, I can go into the existing code, right click the class name, and select "Create Unit Tests". I get the selectiong wind...

Running test from Maven fails and stops building the jar

I am trying to build a jar using maven , this jar was build using ant. When I run tests from maven I got an: ERROR org.hibernate.tool.hbm2ddl.SchemaValidator could not complete schema validation org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver' which comes from: Caused by:...

How to build a jar using maven, ignoring test results ?

Actuality when i run tests they fails but i need to run them to get some .class files which are very important for my jar. By default when test results fails , the jar is not build , could i add a setting in pom.xml which ignore that, so I can build the jar ignoring results from tests ? I read something about "Maven Surefire Plugin" bu...

How to test low bandwidth conditions on the iPhone

I have an application that does a lot of binary data loading. I've encountered scenarios where an unstable 3G connection may intermittently cut out during the loading of some of this binary data, causing issues. Is there any way, using the simulator or otherwise, to test for low-bandwidth/unstable connection scenarios? I seem to recall...

What steps should you take to speed up SimpleTest?

I'm writing some testing code on a Drupal 6 project, and I can't believe how slow these tests seem to be running, after working with other languages and frameworks like Ruby on Rails or Django. Drupal.org thinks this question is spam, and won't give me a way to prove I'm human, so I figured SO is the next base place to ask a question li...

Advantages of Powershell for web-ui testing?

Hi, I am working on a commercial project which is a web-based app which will be bundled with an app/web server (JBoss), which is deployed, with the web app files, at runtime. I've seen links about how Powershell can do UI testing. Is there any advantage in Powershell for web-testing as opposed to Selenium or VS2010's coded UI tests? (S...

Do I need to consider the Client OS when testing websites?

I have a general web question. To be able to test my website on various browsers properly, do I need to consider the operating system too? Is it enough to just test my site on FireFox 3, for example, or do I need to test it on FireFox 3 on Windows, Mac, and Linux? Is it possible for a given browser version to behave differently on diffe...

Where/what to test? Mocks, stubs, functional, unit... (in Ruby/Rails)?

Hi all, I'm trying to test a fairly large Rails app, which I probably should have been doing all along but never felt entirely comfortable with. Now I'm working on a functional test to see if a user is created successfully. Basically, I'd like to test a few things: whether the user was saved (i.e., if there's a new record in the DB) ...

How can I test different environments (e.g. development|test|production) in Cucumber?

Take this scenario. I have a Google Analytics tracking code, and I only want it to show up in Production mode. So I might have two scenarios like this: Scenario: Don't embed tracking code in development or test mode Given the app is not in production mode When I go home Then I should really not see the tracking code Scenario: Emb...

Why < is slower than >=

Hi all, I am using the following code to do the test and it seems like < is slower that >=., does anyone know why? import timeit s = """ x=5 if x<0: pass """ t = timeit.Timer(stmt=s) print "%.2f usec/pass" % (1000000 * t.timeit(number=100000)/100000) #0.21 usec/pass z = """ x=5 if x>=0: pass """ t2 = timeit.Timer(stmt=z) pr...