testing

Are CPython, IronPython, Jython scripts compatible with each other?

I am pretty sure that python scripts will work in all three, but I want to make sure. I have read here and there about editors that can write CPython, Jython, IronPython and I am hoping that I am looking to much into the distinction. My situation is I have 3 different api's that I want to test. Each api performs the same functionality...

How to debug jQuery

Hi there! Some of you may have become very familiar with me in the past couple of days. (I've asked a TON of questions) Anyways, I was wondering what is the best way to debug jQuery? I don't really like having to bug you guys for the answers all the time so I was wondering if there is some tool, or method that you guys use to debug? Than...

test cases of a form filling workflow

a software called livecycle has got forms with different fields in which data is to be filled. on submitting the form the data is stored in the mysql database. the user fills the form partially at his level and there is an assign to field . the user assigns this form to another user. using the workflow of the livecycle software the other...

How to test the performance of an Android application?

How can I test an application for performance in Android? What is the support provided in Android and how do I use it? ...

Test::File::Find::Rule check that all our perl scripts have use strict

use warnings; use Test::More; use File::Find::Rule; use Test::File::Find::Rule; my $rule = File::Find::Rule->file->name('*.pl')->not_grep(qr/^\s*use\s+strict;/m, sub { 1 }); match_rule_no_result($rule, ".", 'use strict usage'); done_testing(); and the output was : out put : ok 1 - use strict usage 1..1 it is always passing the tes...

State based testing(state charts) & transition sequences

Hello I am really stuck with some state based testing concepts... I am trying to calculate some checking sequences that will cover all transitions from each state and i have the answers but i dont understand them: Now the answers i have are : I dont understand it at all. For example say we want to check transition a/x from s1, wo...

testing (rspec) nested model partials in rails 2.3+

With the 2.3.x+ rails feature of nested models, I think I need to have access to a form builder instance to properly spec partials for rendering the nested models. Pulling from the complex-forms-examples: For example, here is an enclosing form that creates and passes the form builder to the nested model rendering view: <div class="chil...

What do you think about the omnipresent "Test, Test, Test!" principle ?

In the old days programming used to involve less guesswork. I would write some lines of code and be 100% certain about what the code does and what it does not at a glance. Errors were mostly typos, but not about the functionality. The last years I believe there is a trend for this "trial-and-error" programming : write the code (as if in...

Battery Percentage - Getting An Accurate Test On Any iPhone

Hello all, I am looking for a way to run an accurate test on an iPhone and find how long it takes for battery percentage to drop. While considering this I thought Would the temperature of the battery make a difference to my result i.e If I took my iPhone outside and ran the test would it be consistent with the test I ran indoors? Does...

Dynamic Testing Tools

I am looking for some sort of dynamic testing tool. Let me explain what I mean. I have a modular application and part of my business strategy is to license each module independently. I would like to test things such as the fact that one module's tests all still pass even when the other module is not present on the file system. Another t...

Running Selenium headless without using xvfb

I'm trying to run Selenium headless (without the browser appearing). Other questions have pointed to xvfb as the tool to do this. However, it appears highly unstable, crashing all the time, so I'm looking for another alternative. Is there a non-xvfb way of running Selenium headless? ...

How to test binary compatibility automaticaly?

Can it be done before compiling, by comparing code? Is there any tools already doing this? ...

RSpec: specifying multiple calls to a method with different argument each time

In rspec (1.2.9), what is the correct way to specify that an object will receive multiple calls to a method with a different argument each time? I ask because of this confusing result: describe Object do it "passes, as expected" do foo = mock('foo') foo.should_receive(:bar).once.ordered.with(1) foo.should_receive(:bar).o...

Entity Framework 4.0 Unit Testing

Hi, I've implemented unit testing along the lines of this article with a fake object context and IObjectSet with POCO in EF4. http://blogs.msdn.com/adonet/archive/2009/12/17/test-driven-development-walkthrough-with-the-entity-framework-4-0.aspx But I'm unsure how to implement a couple of methods on my fake object context for testing. ...

Testing GPS in Android

How do you test GPS applications in Android? Can we test it using the Android emulator? ...

Load testing comet based application

We have developed a comet based application for chat (using streaming approach). The application has been developed in ASP .Net 3.5 sp1. The browser has two connections with the server. One for posting and another for receiving chat messages. While load testing with Jmeter or VSTS the posting is getting recorded and load tested but not ...

Webservice test isolation - but when to verify the webservice itself?

I am isolating my webservice-related tests from the actual webservices with Stubs. How do you/should i incorporate tests to ensure that my crafted responses match the actual webservice ones (i don't have control over it)? I don't want to know how to do it, but when and where? Should i create a testsuite-testsuite for testdata testing?...

Rails Fixtures not loading with rspec

So, I'm trying to learn the rspec BDD testing framework in the context of a rails project. The problem I'm having is that I can't, for the life of me, get my fixtures to load properly in rspec descriptions. Disclaimer: Yes, there are better things than fixtures to use. I'm trying to learn one thing at a time, here (specifically rspec)...

how can i test flash applications ?

flashwatir appears to be dead. is there anyway I can interact with objects in flash apps ? like clicking button and such from a gui-less linux server ? like flashapp.button.click("flash button") puts flashapp.button.text # returns the text label of flash button ...

When I rename a column, how do I ensure my views aren't referencing the column by the old name in my test suite?

I encountered a situation where I've renamed a column, but was unaware that my views were still referencing the column by the old name. This broke my web app, and I pushed these changes to my production server, thus learning the importance of a test suite. I'm new to testing, so, I'm wondering: how I can catch problems caused by this k...