automation

Scripting Trac installation on Windows

Hi, I'm currently working on some R&D for improving the process and practice that we approach development. As a first iteration something I'd like to do is develop an easy way to set up a project e.g. Run an ant script that will, when provided with a project name etc, Copy a template in svn Create a database (if needed) Automaticall...

C# How to login as a different user programmatically into a NTAuthenticated Website

Our team uses a website that uses NT Authentication. I need to point my automation scripts to that site. This needs passing the credentials of the testuser accounts to the application and not mine. How do I do that programmatically so that the application won't prompt for the credentials. Alternatively, can somebody suggest a way to h...

Can we use android scripting environment for functional test automation?

Hi, I want to automate some of my functional test cases on android , can I use Android scripting environment and use Python / Perl to automate my functional test cases? Thanks AD ...

NUnit Repeat attribute

Is it possible to use Repeat attribute in NUnit but failure of one repetition not to cause failure of remaining ones? So, if 3rd repetition is failed, i would like that NUnit still executes 4th, 5th, a so on... ...

html form submission

I'm looking at the html form of an external website (not maintained by myself) in the following format : <form onsubmit="return check(this)" method=post action=address.aspx target=ttPOST> .... </form> I wish to post data to this external website without having to go through the form and pressing submit. Can I simply go to the url 'a...

Automation supervision approaches.

We have a system with serveral automate data entry points. The general hope is that our user-base would report any issues with the data, however this falls down on it's face more than often. My question is what approach should we take to verify that the automation is doing it's job correctly in that the data in our system is correctly ...

pyAA with py2exe

Hi, Is anyone able to get pyAA working with py2exe? pyAA can be downloaded here. I have trying to do this for the last 2 days and I am unable to reach a solution till now. The example files are like given below: hello.py import pyAA print "Hello, World" setup.py from distutils.core import setup import py2exe setup(console=['hell...

How can I get the name of a Visual Basic control given its HWND?

I'm working on a little macro record/replay tool which can automate a few very old Visual Basic 6 GUIs we have. To do so, I'm identifying the controls by their name (the value of the name property of a control, that is). One part of this tool needs to determine the name of a control given its HWND. For newer Visual Basic applications wh...

Browser script to automatically copy a "locked" file from a user's system (Windows)

Hi, For an automated web-backup solution we're thinking of, how can we access and copy a "locked" file from a user's system onto our webserver? This is of course with the user's permissions. Just seeking code that demonstrate this. Added: I know where the file is located, I do NOT want to prompt the user to select the file everytime. ...

Oracle updating database with scripts - automation

I work in a company where we use a lot of Oracle databases, which are used by our in-house software. The database is updated as the software changes and these updates are put in PL/SQL Scripts. We have clients that are still running older versions of our software and so have 'older' versions of our database. Now when we upgrade a cli...

Programmatically play the sound of a shape in PowerPoint

I am working on a PowerPoint 2007 VSTO add-in, and I am running in a small issue. The add-in adds sounds to the current slide using the following code: var shape = slide.Shapes.AddMediaObject(soundFileLocation, 50, 50, 20, 20); The resulting shape does have a sound, and can be played through the PowerPoint slide. My problem is that, g...

Please list stages and tools for software automation

We automate several aspects of Software development using tools. Want to understand What tools the community recommends & why Which stages of development have more potential for automation To start things off, here are tools I use or know of. Automated code quality checks: PMD Regression Testing: Selenium & Molybdenum Build: Huds...

Packaging IDispatch Invoke with Parameters in C# (with DISPPARAMS)

Hi, I'm using Invoke for late binding on a legacy COM objects that supports IDispatch. This seems necessary as .NET's Type.GetMethod Type.InvokeMember do not seem to work on these objects. The following code works fine for getting a property from an object, the caller passes in the property name as a string for getting the property va...

Creation of InstallAnywhere installer inside of Hudson CI

My company is trying to automate the creation of a nightly installer with Hudson. Our license to install anywhere is running on a separate server. We have an ANT build script set up to call the InstallAnywhere jar file which creates the installer automatically, and that works great when ran from the command prompt. However when we t...

Add bookmarklets to firefox in command line

Hi I'm trying to add bookmarklets to firefox from the command line. I'm editing bookmarks.html to insert the proper bookmarks but it doesn't seem to give me the proper result (the file is edited but the bookmarklets don't appear). Can you help? cd ~/.mozilla/firefox/*.default lineNum=`grep -n -A10 PERSONAL_TOOLBAR_FOLDER bookmarks.htm...

Automate client addition of wireless network

I'm looking for a way to add a wireless network on a Windows 7 machine through Powershell or any other automated procedure. Has anyone done this with a Powershell script? This would save a lot of time in setting up a few hundred imaged machines I have to do. Thanks in advance. ...

something better than httrack to download files?

Hey, I am trying to download documents (pdf, tiff, images) from webpages that have javascript and frames in them. example: http://127.0.0.1/web/guest/en/websys/webArch/mainFrame.cgi 'httrack --get-files' didn't download any, are there other ways you may think of? another program? will I have to write that program myself? Thanks a lot!...

C# to Automate an ASP.NET Website

I have a website to which I need to pass 4 parameters and then extract data programmatically but there is a big problem. The website is built into ASP.NET with FORM inside AJAX. So, I can fill one field programmatically and then I fill second field. There is a need to click a button in order to fill third field so I press button programm...

Any simple tool to simulate server load?

I have an IIS server to test for load. But I don't need the tool to give me any performance data. I only want a simple tool/script that would flood my server with requests. I know about wcat, Jmeter, httperf etc. but those have too many extra features. I don't want all that functionality. Just a simple script would do that would send, ...

Add automation support to MFC DLL

Is there a way to add automation to an existing MFC dll? I know I can create a new project and select Automation during the wizard, but I already have a dll with ATL support which exposes a number of COM objects so I'd rather update that than have to recreated it. ...