automated-tests

How should I objectively test my program results?

I have developed two differing methods in MATLAB which aim to analyse a pop song and then automatically create a 30 second audio thumbnail (a preview clip) containing part of the chorus section. Both methods have varying results: The first method can create a thumbnail for each track, managing to find a chorus section in 40 out of 50...

How do I write automated tests for the UI of a Windows Phone 7 application?

It is hard enough to drive a normal app var it’s UI, however when the app is not running on your development platform it is even harder. So what tools will help me test the UI of a Windows Phone 7 application? See also "Are there any issues I should know about with unit test of Windows 7 Phone code?" ...

Best practice for setting up an automated build server for iphone apps?

Hi all, I'm looking to setup an automated nightly build server for our iphone apps, and looking for advice on what works and what doesn't. Basically, something that at least nightly runs all the unit tests and publishes a new adhoc build to our internal website. All the developers use laptops (which'll be off overnight), so I'm consid...

Test Automation for Internet Explorer

Is there any tools for GUI Test Automation for Internet Explorer? I already use Selenium for Mozilla Firefox, but I also need a tool for IE. ...

Need to send email notification on visual studio run

Hi, I'm executing a test-execution project using visual studio 2005 (using the pnunit framework and C# but its not relevant). The total execution time is more than 40 hours. In between if there are any environment problems on the network (external factors like remote server is down, db is down etc) the code stops executing. This creates...

write a simple junit4 test

hello, I tried to write a simple junit test as follow : @before public void start(){ MyAppli.OpenResults(); } @Test public void test1(){ File.OpenFile(); } @After public void closeappli(){ MuAppli.close(); } but when I run the junit test, it launched the appli then stop test without doing File.OpenFile(); and what is also done in @aft...

How do you focus on new windows with selenium ide?

I am trying to use selenium ide to duplicate an action. The action is clicking on a link that open a new window. How do you make selenium ide focus on the new window instead of the other one? It has not been working for me. ...

Executing thread groups separately in jmeter

I have 2 thread groups in my test case. Group A should complete first before Group B starts to execute(at least I though this was the way it worked). Unfortunately they are firing at the same time and tests from both tread groups are executing, what can I do to prevent this from happening. Not to allow group B to start before group A i...

how to refresh a dynamic listview in ActivityInstrumentationTestCase2

I am testing an android activity that has a listview that dynamically changes. The problem is that the listview in my test app does not update when the one in the application changes. I've tried the various refresh methods but no lock. I need to verify the contents of the list as it changes ...

Automating serial port communication on Linux

I have a linux server (Red Hat 4) with one serial port connection to an embedded linux device, and another serial port connection to a power controller for that device. My current way to control them is to open two minicom sessions, each in its own window. I would like to automate this communication through scripts. At first, I began to ...

Using Jquery with Seleninum RC user-extension.js

Hi everyone, I want to include Jquery to our current automation project running Selenium RC ( written in java ). So we can rely on that JS library for writing our java script code extending the current user-extension.js. I have heard and searched the web and many say it can be done, by include the source in the user extension o even ...

Automated testing with PHP

I'm a .net developer so pardon me for not knowing anything about PHP. I read some things on the net but I can't say how it compares to Asp.net MVC in terms of automated testing. I tend to think that PHP is very much like classic ASP except that it's OOP (is it?). In order to improve its testability you have to follow certain development...

How to write a NUnit test for an NUnit add-in?

I'm working on a variation of this stack overflow answer that provides reliable cleanup of tests. How do you write unit tests for NUnit addins? Examining how NUnit self tests, I have determined: You can write tests, that pass, that verify correct behavior of NUnit for failing tests. You write unit tests against test fixtures in a s...

laptop-usb adapter emulates a keyboard and mouse

. I have a keyboard that does macro's (comfortkeyboard) and it's convenient to remember long passwords; but it doesn't have an SD card for backup; and, that brand of keyboard is too expensive . . to replace it, some adapter device (or fully software solution and a cable hack?) should connect a laptop's {ethernet, usb} to another computer...

How is document.createEvent supposed to work with key events?

I'am trying to simulate keypresses in a web application, it is for an embedded system but it uses a Webkit derived browser. I have tested the code in Chrome and get the same error. I tried to use code snippets from this example from Yahoo, but I keep getting the same error when firing the event using dispatchEvent. "target" is an HTML e...

How do I interact with an Iframe using Powershell?

I'm trying to automate a website and find myself needing to get to the contents of an iframe. Since this is an internal application, I've put in this sample, which illustrates the error $ie = new-object -com "InternetExplorer.Application" $ie.navigate("http://arstechnica.com/") $ie.visible = $true $doc = $ie.document $maglistcontro...

WindowTester "enterText" enters repeated characters

I have a WindowTester test which creates a C++ project in Eclipse: ui.click(new LabeledTextLocator("&Project name:")); ui.enterText(projectName); ui.keyClick(WT.CR); This works fine on Windows, but on Linux it tends to repeat the first character in the project name, so if the project name is "testproj", the text entered in...

How to use Cucumber to test content loaded with javascript

I've been developing a Rails application and I've decided to implement a mixture of Test Driven Development and Behavioral Driven Development. However the application I am building uses a web application user interface framework known as MochaUI which is built on top of the Mootools framework. I have just finished writing a portion of...

Is it possible to automate Silverlight with PowerShell?

It is possible to automate Silverlight with PowerShell? I want to control Silverlight, press buttons etc. Like automation with the IExplorer: $ie = New-Object -ComObject InternetExplorer.Application $ie.Navigate("http://www.stackoverflow.com") $ie.Document.getElementById("ButtonID")|foreach{ $_.Click() } ...

It is possible to deactivate the InternetExplorer Silverlight Add-On with PowerShell?

Hello, it is possible to deactivate the InternetExplorer Silverlight Add-On? Later I want to open the Internet Explorer with the Powershell command: $ie = New-Object -ComObject InternetExplorer.Application ...