testing

reliably reproducing db contention

we experience with some regularity contention on a database table, and would like to evaluate a number of different options for resolving this issue. in order to do so, i need to reproduce in a test case, contention on a table (any table) with repeatable reliability. the approach i'm considering would be to reverse the semantics of a l...

How do you write your QTP Tests?

I am experimenting with using QTP for some webapp ui automation testing and I was wondering how people usually write their QTP tests. Do you use the object map, descriptive programming, a combination or some other way all together? Any little code example would be appreciated, Thank you ...

Are there any good tools for testing websites developed for mobile phones?

I am developing a few webpages designed to be accessed by mobile phone (WAP, 3G) and came accross an emulator at dotMobi. What other tools are there for mobile development? Is there such as thing as ySlow for mobile? I need to use cookies so want a tool that can help debug cookies and check that they work for different phones and mobile ...

Simulation and synthetic video generation for evaluation of computer vision algorithms

I am looking for an easy way to generate synthetic videos to test computer vision software. Currently I am only aware of one tool that targets this need: ObjectVideo Virtual Video (OVVV). It is a HalfLife 2 mod that allows to simulate cameras in a virtual world. But I am looking for a more open (like in open source) and maybe portable...

How can I test my webpage in different IE versions?

I can only have one IE version installed, but I need to make sure that webpages work on various IE versions, how can I do that without other computers? ...

Using PaxExam to test a bundle which has a Bundle-Classpath in the manifest

I'm trying to test a bundle using PaxExam which has two embedded jars, referenced by the Bundle-Classpath in the manifest. When trying to access the service that the bundle supplies from within PaxExam I receive an ExceptionInInitializerError: Caused by: java.lang.RuntimeException: Unable to load either XMLPull or StAX parser - chec...

Regression testing for schema (xsd) equivalence

Hi all, I am thinking about rewriting a schema with lots of standalone complex types in it, into one where the complex types extend other base types more sensibly. The rationale for this is partly conceptual - because most of these types are specific instances of a domain object with a definite hierarchical structure - and partly pract...

Testing tool for browser/resolution issues

I just looked at my site (http://softserv.ca) on a laptop and the background images used along the top and top-right looked horrible -- very grainy and striated. It was IE8 on XP. I couldn't check the screen resolution, but it didn't look like anything out of the ordinary. I'd like to know what typically causes such striation, and als...

Test page to verify if jQuery code works

Is there a web site that allows to edit a simple HTML fragment, insert jQuery code, and verify if the jQuery code has the desired effect? ...

How To Simulate Lower CPU Processor Machines For Browser Testing

Hi, We have some users which are using lower cpu powered machines and they're encountering slow rersponse times using our web application. Is there anyway for me to be able to do testing so that I can simulate lower cpu rates? For example, I have 2.3 ghz right now computing power, can i lower it to somehow 1.6 ghz or lower so that i m...

Testing controller instance variables with Rack::Test and Sinatra

I have a Sinatra app that serves pages as read-only or editable depending on if the user is logged in. The controller sets a variable @can_edit, that is used by the views to hide/show edit links. How can I test @can_edit's value in my tests? I have no idea how to get at the current instance of the controller under Rack::Test. I use cl...

How can we decide which testing method can be used?

i have project in .net , i want to test it. But i dont know anything about testing and its method. how can i go ahead with testing. which method is better for me for begining? Is there anything to decide which testing method is taken into account for better result? ...

Django: Test client's context is empty from the shell

I cannot access the context attribute of an HttpResponse object from ipython. But the unit test accesses context. Here is the unit test. The test run passes properly: from django.test import Client, TestCase from django.core import mail class ClientTest(TestCase): def test_get_view(self): data = {'var': u'\xf2'} re...

How to submit image uploads in Django tests?

The Django docs (http://docs.djangoproject.com/en/dev/topics/testing/#django.test.client.Client.post) say to do this: >>> c = Client() >>> f = open('wishlist.doc') >>> c.post('/customers/wishes/', {'name': 'fred', 'attachment': f}) >>> f.close() But when I do that the field has the error message "The submitted file is empty." That sme...

How can I remotely execute a commands on a Windows box as part of a build process?

How can I remotely execute a commands on a Windows box as part of a build process? If it matters, I want to initiate the commands from a linux machine which is performing the actual build. To give some background... A web application I am currently working on has, as part of the build process, a system for automatically reverting a li...

JUnit Return int value

My Junit test should check that the number being returned is the same as the list size if my test was as follows would this be coded properly, i feel it isnt because i the last 2 lines are always going to be true? public void testGetTotalPilots() { ArrayList<Pilot> list = new ArrayList<Pilot>(); int size = list.size(); as...

How can I access response.context when testing a Jinja2 powered Django view

When I use the Django test.client and I do something like: class MyTestCase(TestCase): def test_this(self): c = self.client response = c.get('/') assert False, response.context['name'] I get an error: assert False, response.context['name'] TypeError: 'NoneType' object is unsubscriptable My only guess is ...

Gregorian Calendar - Document based testing

After doing JUnit i am doing some document based testing that has the following items in a table Input Variables - Expected Outcome - Actual Outcome ..... Pass or Fail .... If i pass my method a date and a time "01AUG07" "14:40" the method should return me a gregorian calander which it does how can i check that it has created the c...

Fitnesse framework very slow when folder depth is greater 4 - why?

hi all, we are currently establishing fitnesse as the testing tool user acceptance testing. so far everything is good. we are using the java version "20091121". we are having troubles with folders that are deeper than 4. we have setup the following folder structure SetUp TestSuite content.txt + properties.xml (just "!cont...

Is it possible to automate Siebel testing behind the GUI?

My test team currently uses QTP to test through the GUI, but like any automated test suite that relies on the interface, it is more fragile than automating tests that directly interact with the code. I am attempting to learn more about Siebel and Siebel Tools to better understand how we might be able to test below the GUI, but would like...