testing

Should I write rails tests with the def or test keyword?

This seems like a simple question but I can't find the answer anywhere. I've noticed that in general, tests in a Ruby on Rails app can be written as: test "the truth" do assert true end or def the_truth assert true end It seems newer material writes tests the first way, but I can't seem to find a reason for this. ...

Private method call exception for ActionView

I have a functional test suite failing in a Rails 2.2.2 application. The exception thrown, and the associated lines are below: ActionView::TemplateError: Attempt to call private method On line #55 of app/views/wine/view.html.erb 53: <% for activity in @activities %> 54: 55: <% if activity.context == 'ItemComment' ...

GUI test framework for XAML views/controls

I'm looking for a test framework that helps me test XAML views/controls. Not just to verify correct data binding but especially to test the appearance and behavior of more complex controls. Obviously this will usually result in manual tests. What I have in mind would look something like this: Write a normal unit test using whatever un...

Migration of Test Scripts into a New Release

Hi, Overview Our company's current system test cycle involves the use of word documents for the UI test scripts and test execution log. For each new release, these documents are copied from the previous release and then modified to reflect the current release version together with new test steps where there are changes in functionalit...

Testing memory usage which tool?

Currently we are using Rational Purify, however it is a pain to use and we have now reached the stage where we are unable to instrument our applications without changing our development build system. The our application is statically linked and large. It is also memory hungry, where peak memory usage is often over 3Gb. Ideally I would ...

Is there any good open-source software to write test cases?

I'd like to have historical memory of the test cases I usually do to verify a software suite, and the company in which I work now uses word or excel docs for this task, but I'd like something more focused on the type of task. What do you use? Is there any open-source software to fill with test cases? Thanks ...

Which tests beside unit tests and continuous integration decision?

Some DO facts: two developers in a team we write unit tests (auto run with every build) we use source versioning control system (SVN) we (the two developers) are product managers as well (a classic situation with high risk of product over-engineering) Some DON'T facts we don't have nightly builds we don't have continuous integratio...

WatiN Test Project Best Practices

After building up and running lots of WatiN tests, what are some good ways to organize the tests? If I was asked "Do we have a test that does X, then Y?" How would I look that up? Would it be with all tests surrounding X or Y? It seems after getting lots of tests in here, organization becomes a bit of an issue. I'm just looking for some...

test automation tool.

I am looking for a test automation tool that supports eclipse based plug ins for all web browsers and it sholud be cross platform. pls send me suggestions ...

php mail on MAMP

hi, I need to test some script using PHP's mail. I'd like to be able to finally get this working locally. I am using MAMP. Is there a way to do this without installing any third party software? I've done some searching on this but haven't found anything appealing. Thanks ...

Best practices for integration tests with Maven?

I have a project which I am building with Maven which uses Hibernate (and Spring) to retrieve data from a database, etc. My "tests" for the DAOs in my project extend Spring's AbstractTransactionalDataSourceSpringContextTests so that a DataSource can be wired into my class under test to be able to actually run the query/Hibernate logic, ...

Manually Dispatching a DocumentEvent for testing UI element validation code

Hi. I'm testing a Swing GUI application using the UISpec4J testing framework. I'm testing validation code on a JTextField, but the framework does not support focus-change events, as it runs the application in a headless fashion. The text field has a DocumentEvent attached to it that activates the validation code. I'm trying to figure o...

OSS (PHP ?) projects using Selenium for functional testing ?

Hi, I'm sometimes using Selenium (mostly IDE to write tests, and Core / RC to run them) from PHP, using PHPUnit, and I was wondering : do you know any "big" project that uses Selenium for automated functional / non-regression testing ? I would most be interested in Open Source Ideally, PHP ; but JAVA and/or .NET would do too Well-kn...

I want to run Selenium test case file from command line.

When I use Selenium IDE that is extension of Firefox. After that I save some test case from Selenium IDE. Now I want to use command line to run this test case file. I try to do follow this how-do-i-launch-the-selenium-ide-from-the-command-line-with-a-specific-test-case but it not work. Please help me. ...

Programatically finding a message box and generating a click on a button

I am trying to automate testing of a winform application. I am running it in the same process as the test code, so it is fairly easy to find the .Net controls and simulate user action on them. I got however stuck a bit with a message box (created using the standard MessageBox.Show method). How can I get hold of it and simulate that a but...

What are some ways to test an architecture?

How does one test an architecture? Are there test-related things that can be done while the architecture is still being pounded into shape? I plan to iterate but I don't want to wait to have an entire architecture done (even if it's very rough) before I start thinking about testing. Update: I'm using the word architecture the way it's ...

How do I see stdout when running Django tests?

When I run tests with ./manage.py test, whatever I send to the standard output through print doesn't show. When tests fail, I see an "stdout" block per failed test, so I guess Django traps it (but doesn't show it when tests pass). ...

How do you test your interrupt handling module?

I've got an interrupt handling module which controls the interrupt controller hardware on an embedded processor. Now I want to add more tests to it. Currently, the tests only tests if nesting of interrupts works by making two software interrupts from within an ISR, one with low priority and one with high priority. How can I test this mod...

Delay incomming network connection

I have an server-application Foo that listens at a specific port and a client-application Bar which connects to Foo (both are .NET-apps). Everything works fine. So far, so good? But what happends when to Bar when the connection slows down or when it takes a long time until Foo responds? I have to test it. My question is, how can I sim...

Web testing frameworks for ASP.NET web application

I'm trying to implement some front end testing in a ASP.NET web application, and I would like to know how do the several web testing frameworks compare. Especially MSTest's "Web Tests", because I haven't seen a lot of info about them, and since it seems to have a nice integration with Visual Studio. Related posts: WatiN or Selenium? Wat...