testing

Ideas for a comprehensive Javascript assignment

I am likely to be part of the teaching team for the web programming course at my University next semester and I was wondering what kind of Javascript assignment to hand out to the students. The course is not an introductory one from a programming perspective. It is assumed that the students are familiar with OOP, data structures and al...

TDD: Unit testing focus

Could TDD be oriented to another kind of testing different from unit testing? ...

What is the best load testing tool?

What is the best load testing tool for ASP.NET applications? ...

Mock Y of (from X import Y) in doctest (python)

I'm trying to create a doctest with mock of function that resides in a separate module and that is imported as bellow from foomodule import foo def bar(): """ >>> from minimock import mock >>> mock('foo', nsdicts=(bar.func_globals,), returns=5) >>> bar() Called foo() 10 """ return foo() * 2 import doct...

Is there a way to automate Google Web Optimizer approvals?

Google Web Optimizer uses URLs for its A/B testing experiments. In addition to the production URL, we also have several pre-production environments. Releases of software are pushed out. We're only running our first experiment now, but we've set up five experiments in GWO -- one for each environment (and thus URL). It's a bit of a pain ...

Cucumber/RSpec testing of improbable errors

I've got a problem testing the following controller code: def publish if @article.publish flash[:notice] = "Article '#{@article.title}' was published." else # This is not tested flash[:error] = "Error publishing article." end redirect_to :action => :index end Where the function publish looks like that: def publish...

testing framework selection

Greetings, I am looking for a testing framework. Currently we have a home grown Perl script that loops through the input files, calling an AWK script which in turn connects to a server, then collects the output and compares it to a saved output file. This is done on Linux. Currently there are just over 100 tests. We are planning a maj...

Lazy evaluation in Python? Between modules?

I'm not sure if something like this is even possible in Python, but if it is it'd be really useful (at least to me in this instance). I have a test framework in which I want to keep the test configuration separate from the test commands. This is useful because it allows you to mix and match configurations/tests without actually having...

Testing clients for public web services

What are approaches to test custom clients for public web services? Today there are many online services which provide an API. There is a boom of little apps using those APIs. Examples: desktop/mobile clients for social networks and blogging platforms, document storage and processing centers, cloud databases, real-time data streams, GIS...

A blackbox testing frame with testing management system

Hi! Is there a testing framework (preferable python) that executes test, monitor the progress (failed/passed/timeout) and controls the vmware? Thanks I am trying to make some automation functional testing in Vmware using Autoit script, VMs are controlled by a little python script on the host machine (deploy test files into VMs, execute ...

How to compare test website and live website

Hi, We have our production server running our website. Then we have a test server which has exact same data but with changes to code to do some new functionality. This web app has over 500 pages. Is there any program that can Login to the test site Crawl through each page and then save the page as html Compare with the same page sav...

Is it possible (with Moq) to stub method calls with Lambda parameters?

If I do this: var repository = new Mock<IRepository<Banner>>(); repository.Setup(x => x.Where(banner => banner.Is.AvailableForFrontend())).Returns(list); "Where" is a method on my repository that takes a Func<T, ISpecification<T>. AvailableForFrontend returns an implementation of ISpecification, and list is an IEnumberable of the gene...

Excel driven Selenium Tests

Is there any way we can extract Selenium-IDE output as an excel sheet and then use java reflection to trigger them one-by-one? Any existing good tool already done this? ...

How can I test windows programs in the cloud?

I'm working on a project that makes heavy use of shell extensions. I want to test it in as any versions of windows as possible. Is there a service designed for this? Almost like a VPS host but with OS images for retail XP, XP SP1, XP SP2, etc ...

How do I write and test password changes when using Authlogic?

An application I inherited has the following action for updating a user's profile: class UsersController < ApplicationController # ... def update @user = current_user if @user.update_attributes(params[:user]) flash[:notice] = "Successfully updated profile." redirect_to root_url else flash[:error] = "Hrm...

TFS build problem: missing assembly in test output folder

Hi all, I am trying to integrate unit test cases with a TFS build in our new solution. I've include the following configuration line in my TFSBuild.proj <ItemGroup> <TestContainer Include="$(OutDir)\%2aTest.dll" /> </ItemGroup> Which I think is the correct configuration since I only have 1 test project. However, when I do this, ...

How to implement in-app purchases?

I need to implement in-app purchases. Can I test my test app without submitting to App Store? How can I create a iTunes test account for in-app purchases? ...

Mock web service

Hi, We have two components: enterprise application X, and Web service Y We want to make our (automated) testing tool that will test application X (that interact with Y) only, and we have not the web service Y available. Notes: The testing tool will be a desktop application. We Don't want to use another external tools-e.g. SoapUI- fo...

How Can I test Servlets with JUnit?

I saw Jetty has got and ServletTest class which you can use to test Servlets. tester = new ServletTester(); tester.setContextPath("/"); tester.addServlet(TestServlet.class, "/servlet/*"); ... tester.start(); Do you know if there is something similar in Tomcat? How could I test a servlet? ...

How can I mock/fake the existence of a file using rspec?

This is what I have: it "should be able to get a valid directory path" do @asset.some_file_path.should == "/something/test.jpg" end The problem is that some_file_path returns "/not_here_yet.jpg" if there is no existing file. def some_file_path if File.exists(self.my_image_path) return my_image_path else return "/not_...