testing

GUI frontend for cURL for testing an API

I'm (manually) testing a RESTful API that makes full use of GET/POST/PUT/DELETE methods. Rather than using cURL on the command line to quickly test different input options, it would be handy if there were a windows GUI application to make this easier. Does anything like that exist? ...

Mocking an Entity Framework model?

Is it possible to mock an EF model so that I can test code which uses the model classes without getting rid of LINQ to Entities code strewn throughout my project? Or will it be necessary to set up a test database for the model to hit instead? ...

Forcing FileNotFoundException

I'm writing a test for a piece of code that has an IOException catch in it that I'm trying to cover. The try/catch looks something like this: try { oos = new ObjectOutputStream(new FileOutputStream(cacheFileName)); } catch (IOException e) { LOGGER.error("Bad news!", e); } finally { The easiest way seems to make FileOutputStrea...

Testing of socket communication program

Am starting with socket programming with a simple UDPClient program to send some data. The large code snippet is below: using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; class ShowIP { public static void Main(string[] args) { string name = Dns.GetHostName(); //n...

C++ Assertions that Can Display a Custom String with Boost or STL?

Hi, I really want to be able to go: (in C++) assert( num > 0, "The number must be greater than zero!"); In C# XNA, they have a method that does exactly this: Debug.Assert( num > 0, "The number must be greater than zero!"); Is there some way to do this so that the runtime gives me a meaning full error not just "an assertion failed" ...

Any way to access cookies in SilkTest?

We're testing a web application using SilkTest 2008R2, and need to check the value of the cookies periodically. We currently use javascript via the ExecLine function: BrowserPage.ExecLine ("alert(document.cookie.split(';').join('/n'))", TRUE) and then just read the text off the resulting popup. This is somewhat errorprone. Is there...

Is there an equivalent of Don Libes's *expect* tool for scripting interaction with web pages?

In the bad old days of interactive console applications, Don Libes created a tool called Expect, which enabled you to write Tcl scripts that interacted with these applications, much as a user would. Expect had two tremendous benefits: It was possible to script interactions that otherwise would have had to be repeated by hand, tediousl...

What would be the light way to render a JSP page without an App/Web Server

First, some background: I will have to work on code for a JSP that will demand a lot of code fixing and testing. This JSP will receive a structure of given objects, and render it according to a couple of rules. What I would like to do, is to write a "Test Server" that would read some mock data out of a fixtures file, and mock those obj...

How can I find people to check and play with beta version ?

I'm working with third party tools for databases software company. We've developed a great query tool for different kind of databases, and now we looking for people to play with it and tell us what they think and if everything is working ok. You have any idea where can find people who will want to do it? Added by edit : This is the...

Should you test an external system prior to using it?

Note: This is not for unit testing or integration testing. This is for when the application is running. I am working on a system which communicates to multiple back end systems, which can be grouped into three types Relational database SOAP or WCF service File system (network share) Due to the environment this will run in, the...

Appropriate placement for my testcases belonging to a non-app in Django

I have built my website in Django. And like any other django project I have got apps inside the project root directory and some special folders like(extensions a.k.a custom django command extensions). With an app, we dont have any problem with having testcases. "tests.py" inside the app directory will be the solution. But for a special f...

where to download cool animations for testing?

hello, I am looking for some sites where I can download some short clips (5-20seconds) for testing purposes of video import routines. Does anyone has some data sources for wmv, mpeg, mov, etc. ? Thanks! ...

Any Good Certification in Testing

Which exam is better for TEsting engineer, ISEB or CSTE? Any other good ones you suggest? Anyone know about any Microsoft certification in Testing? Kind Regards Sam ...

Is there a tool to capture an objects state to disk?

What I would like to do is capture an object that's in memory to disk for testing purposes. Since it takes many steps to get to this state, I would like to capture it once and skip the steps. I realize that I could mock these objects up manually but I'd rather "record" and "replay" real objects because I think this would be faster. Edi...

How can I run django unit tests (through manage.py) faster

As I'm developing unit tests for my django application I find myself running manage.py test over and over and over again. I'm using a MySQL backend and have many models in the project, so the ramp up time to create all of the test databases is about 30 seconds. How can I use make each unit test faster by keeping the database tables c...

Why django checks whether settings.DATABASE_NAME db actually exists for running testcases?

I will be frequently running testcases for my django project. But one fine day it occured to me that django actually checks the settings.DATABASE_NAME db actual existence while running testcases. Why is this so. All I thought was django will be taking the settings.DATABASE_NAME and creates a test db called 'test_' + settings.DATABASE_NAM...

What test scenarios are necessary and sufficient to exhaustively black box test a recurring appointment model?

I have a django model for an appointment in a calendar that I am attempting to write a very comprehensive test driver for. The recurring appointment occurs at some point in time and can either run on infinitely or recur for a fixed number of times. The appointment mirrors the functionality available for a Google Calendar appointment (...

Tests suddenly erroring out. Anyone seen this error?

Ruby 1.8.6, Rails 2.2.2, OS X Tiger My Test::Unit tests started returning the error below. The relevant line seems to be: `load_missing_constant': Expected /Users/ethan/project/mtc/webcalendars/app/models/calendar.rb to define Calendar (LoadError) The file mentioned, calendar.rb looks fine. I can't find any errors in it. I trie...

Sqllite coalesce problem when running django testcases

I am using django for running my project. And I am using postgresql_psycopg2 engine for my production db, but the test runner uses sqllite3 for running the tests. Keeping my production db(postgresql)in mind I tried building a query which uses "coalesce". But sqllite3 doesn't recognize this. How do I get pass this. I can use postgresql_ps...

Recommended Model Based Testing Tools

Does anyone have any suggestions on what Model Based Testing Tools to use? Is Spec Explorer/SPEC# worth it's weight in tester training? What I have traditionally done is create a Visio Model where I call out the states and associated variables, outputs and expected results from each state. Then in a completely disconnected way, I data d...