Is there a headless browser for .NET?
I am looking for this in a testing context.
Coming from Java I am thinking of something similar to HtmlUnit (http://htmlunit.sourceforge.net/) which itself is the base for different higher level tools like Canoo WebTest or Celerity.
I would like to create automated UI tests for web applications in...
Hi,
I'm trying to get to grips with this type of association in Rails
I have the following three models:
User
has_many: 'memberships'
has_many: groups, :through => 'memberships'
Membership
belongs_to: 'user'
belongs_to 'group'
Group
has_many: 'memberships'
has_many: 'users', :through => 'memberships'
I have a before_create metho...
I want to learn how to build “robust” software that is designed to test itself. In other words, how do I implement automated tests in my software ( using java or groovy or c++ ).
So I want to know where to learn this (books or websites) and which tools and libraries I will need for this?
...
I'd like to write tests for a simple byte-oriented protocol using something like Expect. The test scripts would look like a plain stream of:
send "data"
expect "data"
(Where send writes to stdout and expect reads just enough from stdin, exiting if it doesn't match.)
I can't use expect itself because it is designed for buffered, line-...
I've been with my current company for about four months now and I've noticed how several of our RnD scopes/documents use the term "lifecycle testing."
I've always thought that this term would mean the entire testing phase of a project, but the context of the term suggests that it instead is when the software is tested with "live" or "r...
Does somebody know a free tool, which can be easily integrated with jsystem to test .net based windows GUIs?
...
Hi, I'm trying to make some tests on a JavaScript application and someone advised me to use Selenium. I visited its site but I cannot understand what is it and how can I use it for testing. Can someone help me understand?
...
I've got a desktop application that I need to test in several different languages. I could build a VMWare image for each language that I need. But I was wondering if I could somehow use EC2 instead.
I've seen this question, but it is asking about running VMWare in EC2. I want to know if I can use EC2 instead of VMWare.
What kind of in...
Hello,
Using boost build, if I can link to a boost python library with this in my jamfile:
project myProject : requirement
/boost/python//boost_python ;
how can I link to boost test? I have built the boost test library.
I don't want to use file paths since my code is portable. Thanks...
I am working on a legacy code where there are several methods with calls to Stored procedures from the service layer itself as opposed to hibernate. Is it possible to test those methods in any manner so that my code coverage can increase ? I am using java 1.5 and sql server 2005.
...
Some functionality in my app works differently depending on the client's IP address. Is there a way to test that in Rails functional tests? I'm using Test::Unit and Shoulda.
...
I want to be able to use a clean url to test in google optimizer.... can i create a file called geolocationtest.php so that
http://neighborrow.com/geolocationtest.php
will redirect to http://neighborrow.com/v2/controllers/ and eliminate the directory problem that google doesnt like?
...
Hi,
I have a situation. My application is sending multiple SMSes to end client this number varies from 50000 to 100000 SMSes at any point of time. To achieve this functionality i am using Kannel as sms sender interface.
So My solution is complete. But only in development environment! Before going to be in production I supposed to do a t...
considering a pointer to a struct
struct a_struct
{
int A;
};
Is it ok to do :
struct a_struct *ptr;
//...
if( ptr != NULL && ptr->A == 1)
{
//work with ptr struct
}
or should you Test if the pointer is valid before testing for on of its field.
if(ptr != NULL)
{
if(ptr->A == 1)
{
...
Is it a good idea to check for odd/even length of a palindrome number/string? Most snippets I came across don't do this basic test. If length is even, it can't be a palindrome, no?
if len(var) % 2 != 0:
# could be a palindrome, continue...
else:
break
Or is it just better (i.e faster) to start comparing the first and last numbers...
I was wondering what I should test and how I should test an IRepository.
At the moment I created a MemoryRepository in my domain and I am testing that with fake data. I am not sure if this is correct though. Feels a little weird to first create some data and then test to see if the repository returns it correctly.
This is what my Memo...
Hi everyone, I am just getting started on javascript, and I have experience in developing systems in other platforms and languages.
The problems people have with javascript are well known, so i would not repeat them here. But my question is, why isn't there a framework yet for handling error cases?
I can imagine a simple library that c...
routes.rb
map.resources :places do |places|
places.resources :reviews
end
place model
class Place < ActiveRecord::Base
has_many :reviews
end
review model
class Review < ActiveRecord::Base
belongs_to :place
end
In my reviews controller test I have the following assert_redirect_to statement
assert_redirected_to pl...
I'm looking to send raw post data (e.g. unparamaterized json) to one of my controllers for testing:
class LegacyOrderUpdateControllerTest < ActionController::TestCase
test "sending json" do
post :index, '{"foo":"bar", "bool":true}'
end
end
but this gives me a NoMethodError: undefined method `symbolize_keys' for #<String:0x00000102...
I am doing a performance comparison test. I want to record the run time for my c++ test application and compare it under different circumstances. The two cases to be compare are: 1) a file system driver is installed and active and 2) also when that same file system driver is not installed and active.
A series of tests will be conducted ...