Recently I have been trying to use unit tests in my code, and I like the idea in principle. However, the parts of my code that I am most eager to test are those error-prone areas which unit tests alone don't handle very well; for example:
Network code
Filesystem interactions
Database interactions
Communication with hardware (e.g. speci...
I'm needing to test web applications in IE6,7 from my OSX workstation. I develop and run test servers locally on my OSX system. Currently have VirtualBox running Windows XP.
Question: How do I view pages in IE (the guest os) that are hosted from OSX (the host os)?
From Firefox on the host (OSX) the page can be viewed at localhost:808...
hello
I wrote a java test and I run it from run as junit test
in my project a bin folder was created with ".class" file
when I wrote a shell to launch the same test(with some modif) by command line it it launches the test without taking account my modif , do the tests use tha generated .class ?
could I remove this ".class" and launch te...
Hi
I am using SQL Server with Entity Framework for a development of web app in .NET 4 with VS2010 RC. I would like to prepare testing database with sample data.
Should I prepare a copy of the real database (say another SQL Server database) for testing, or can I use SQLite in memory for better performance?
If using SQLite, can I use th...
Hi,
I recently had a look at the awesome Blue Ridge Javascript testing framework to test javascript on my rails app. But i was wondering if anyone knew how to test the javascript view files in rails?
The Blue Ridge framework(as far as i could understand) lets you test only the javascript files. But I wanted to test my "js.erb" files w...
As it is included in the licence (according to SAP) we would prefer using SolMan over other tools, for the entire life-cycle of software development. Or is it highly recommendet to use specific tools for the particular processes like Test Management? Any opinions??
Regards
M.
...
I am attempting to test user interaction with an off the shelf product.
The current process is to run through a manual script and record how long certain processes take to populate data, it may populate a datagrid, a tree, a list box, etc...
It will also need to be able record how long it takes to generate a pdf report.
We do not requi...
Requirements:
I wish there was a software that does:
runs my application in "learn mode"
logs any network traffic
creates a database of request-response combination (e.g. http)
runs my application in "offline mode"
catches any network traffic (e.g. http), and returns a response from the request-response database
Purpose:
Testing C...
Is there some way (using the standard Django.test.TestCase framework) to perform a global initialization of certain variables, so that it only happens once.
Putting things setUp() makes it so that the variables are initialized before each test, which kills performance when the setup involves expensive operations. I'd like to run a setup...
I need to run mstest from the command line - where in the world is this exe located? Can anyone give me a clue?
Edit: I only have Visual Studio 2010 installed
...
My understanding is that it's advised testers are separate from developers, i.e you obviously have developers testing their code but then dedicated testers as well.
How does that actually work in practice on a small project, say 5 developers people or less? It seems unlikely you could keep a tester occupied full-time, and while you coul...
Hi
We are using JUnit+Selenium for functional testing of a web site in our project.
In several tests we need to download files from the website and compare it with a local resource.
We are using UrlResource to do this.
UrlResource actualResource = new UrlResource(URL);
compareUtil.isResourcesEquals(expectedResource, actualResouce);
...
Excuse if this is a silly question, I am new to mocking.
I am able to use mocha to do things like:
person.expects(:first_name).returns('David')
How can I mock a nested object?
Say I have a Product that belongs to a Person and I want to get the first name of that person.
In my app I might do it like this:
product.person.first_name
...
What is the best way to test an implementation of a mutex is indeed correct? (It is necessary to implement a mutex, reuse is not a viable option)
The best I have come up with is to have many (N) concurrent threads iteratively attempting to access the protected region (I) times, which has a side effect (e.g. update to a global) so that t...
I'm having a hard time trying to grok the concepts behind Modified Condition/Decision Coverage. I understand that the expected test suite that is output will adhere to the following conditions:
Each block in a program P has been covered
Each simple condition in P has had both true and false values
Each decision in P has taken all possi...
Hi
Today I ran into a problem where I cannot call the ControllerContext in my Controller, within the MS Unit Test method when accessing via a private method. For example
//This is my controller and private GetUsers() method
public class SampleController : Controller
{
private IEnumerable<Users> GetUsers()
{
...
My question says it all really. Are there any tools like perfmon or xperf that will work under the Windows XP Embedded OS, to monitor the resource requirements of a compiled (C++, as it happens) application as it does its job?
...
hi there,
i'm working on an iphone app ( sdk 3.1.3 ) and I have added the corelocation and mapkit framework. I used the iphonesimulator package, but added them using 'relative to current sdk'. When I test my app in the iphone simulatore everything works. But when I switch to iphone device 3.1.3 i'm getting 2 warnings and 4 build errors:...
I want to clear and re-load my developer database (Ruby on rails) frequently.
Of course, I can manually add the data via the web page but I was wondering if anyone has any strategies for this type of testing.
(I already have unit, functional and integration tests, fyi)
Thanks
...
I have a library that provides a reflection API on top of describeType() (a method that returns an XML object with all the specs of a class or instance). Since this library is used in several other libraries and frameworks, I really want it to be as fast as possible.
The problem I'm facing is that I'm not sure about the best approach to...