automated-tests

What are popular ways to pre-populate the database for Selenium testing?

If I have a test that requires X widgets as a precondition, I'd like to avoid the tedious process of making X widgets in the test through the front-end. The main alternatives appear to be either having a stated DB dump that is loaded for each test run, guaranteeing a pre-determined state (the dump file is generated by doing the precondit...

Check javascript error in selenium

I have Selenium tests in PHP under PHPUnit run via CruiseControl. Is it somehow possible to check if there was a JavaScript error on the page? ...

How can write a windmill test which uses an <input type="file"> to upload data to the server?

Title says it pretty much all... I'm trying to automate tests on a web application with Windmill, and some of the test need to use forms with input type="file". I know it is not possible to manipulate this with js, but I'm wondering if the Python API of windmill allows this. I could not find anything in the docs, though, nor in the exam...

Why is a CListCtrl responding to LVM_GETVIEW with LV_VIEW_ICON when that CListCtrl's view/display style is LVS_REPORT?

I'm working on UI-driven test automation, and the app under test (AUT) has a UI implemented with C++/MFC/Prof-UIS. My team employs Ranorex to author the tests. Experience has shown that Ranorex does not properly navigate the list controls (instances of CListCtrl) in the AUT. They all have multiple columns, and Ranorex will only retrieve ...

What are the popular test automation tools for Silverlight

I need a test automation tool for Silverlight. Basically, I need a tool that would simulate users accessing, clicking buttons etc. on a Silverlight UI. A google search has turned up several promising leads: WebAii White Selenium-Silverlight NeoLoad I need to know what the pros and cons of each of them are, and of any other suitable ...

free automatic regression test tool for asp.net applications ?

we are working in a small team. We often had problems like developer1 did some changes in stored procedure or funtion and it affected work of developer2. Such issues are traced out by chance later. Please guide me how such issues can be stopped. Is there a free tool that we can run to test such issues. thanks ...

Are there any free/open-source WCF client frameworks/libraries out there?

I am working on a tool that will test the server of a Silverlight application. AFAIK, Silverlight uses WCF to communicate with the server. I am curious if here are any free tools out there that can enable to write test scripts that test the server via WCF, preferably in Java, Python, Ruby or anything that does not require .NET. ...

web site testcase sample format

hi , For web development , Can u send some sample test case xls report , Or is there any good open source plz refer , Is there any free automated testing for php web development , Thanks ...

How do you store an elements text with selenium in a javascript variable?

I have this html: <div class="title"> <div class="subtitle"> <div id="flhcd1> <h3>Hello</h3> <span></span> </div> <div class="subtitle2"> </div> </div> I want to be able to use selenium and javascript to store the text in the <h3> (Hello) in the variable titleText . I will be using this code in browsermob for monitoring tests. ...

Can't get autotest running with Rails 3

Not sure what's going on, but I can't get autotest to work with rails 3. I'm using ruby 1.9.2-head and Rails 3.0.0 and I have all of the relevant gems installed. I'm declaring them in my gemfile like this: group :development do gem 'rspec-rails', '2.0.0.beta.18' gem 'annotate-models', '1.0.4' gem 'autotest' gem 'autotest-rails'...

Is there a name for the testing technique I use?

In case of things that are hard to test using traditional xUnit-style methods, such as various converters, XSLT, etc. I often employ technique based on output comparison. The test program produces some output when it's run for the first time. I make sure it's correct and save it for the later use. On the following runs the program compar...

How do you tailor your dev process around adding unit tests to the build?

Hi folks, I have ran into a situation at work where it has been proposed to add our units tests to the Cruise Control continuous build process. The units test would be added as another project in CC, so that we would have a "Normal Build" project and a "Build and Test" project. We currently use the "Normal Build" process to a) make sure...

How would you verify that a certain css element on a page is a certain image with selenium

I have a page that I want to check with selenium that uses a certain background image for one element. I want to ensure that this image still exists on the page connected to the element. How would I do this with selenium. If this changes anything I am using browsermob.com to do the testing once I get it running through selenium ide. ...

Automatic deploy guests on Visualbox to run software test on different architectures

I would like to test a program on several OS - Windows XP, VISTA, and a linux distribution, I would like to automatic deploy and run tests on several test machines -- guests on VirtualBox installed on my developer PC. Has anybody experience with such a test setup? Is there any better approach? ...

Bulk data set up for Unit Test cases

I have developed an application with Spring MVC that deals with bulk data insert/update. For ex: There are some use cases that insert a record with 100-125 attributes. For bulk data insert, I'm hard coding the values to be inserted in my Unit test class. I have Transfer Object to carry the data, so i'm populating these TOs in my Unit ...

Create request with SOAP ui

Is it possible to create soap ui request with data ? right now I know how to create new request which gives you template what you should send to your webservice (which is read from you wsdl), is there a way so your requests fills with data based on type(ex: String,Integer, Date) from wsdl, from soap ui or any other test tool ? thank you ...

Launch WinPhone7 app in emulator programmatically (for automated testing)

I'm trying to find a way to launch WP7 applications in the emulator as part of an automated test system. I've tried running XapDeploy.exe from the commandline with a xap specified, no luck there (was worth a shot, right?). I can just terminate the emulator process after a certain amount of time... if only I could launch it. Anybody ...

how can I stop all tests from inside a test or setUp using python's unittest framework

I'm extending the python 2.7 unittest framework to do some function testing. One of the things I would like to do is to stop all the tests from running inside of a test, and inside of a setUpClass method. Sometimes if a test fails, the program is so broken it is no longer of any use to keep testing, so I want to stop the tests from runn...

JUnit Testing for Automated Testing Scripts?

I recently joined this organisation that I am currently working at that has asked me to re factor, extend and maintain an existing Automated Testing Framework written in java, which uses a keyword driven framework and RFT. I have been a developer all my life. By habit I write unit tests to test for behavior before writing source code. Th...

Has anyone successfully used selenium-ide to enter data into google docs? If not is there another option?

I am trying to use selenium to enter data into google docs so that it is accessible to other selenium scripts. If not can anybody think of a way to accomplish this? ...