automation

Automation Testing approach - Which is best?

Which is the best suited automation approach? is it Data driven testing or Keyword driven testing? Now even we have Business process testing, what according to you is best approach? ...

IE Automation with Windows PowerShell

Hey all. I want to ask about manipulating IE via Powershell. My goal is to write script that will automatically perform some actions in the browser (on the client side – navigate to page, perform actions, measure time between responses, etc.) I have this little thing: $ie = new-object -com "InternetExplorer.Application" $ie.visible =...

Automate Dual Monitor Setup In Vista

I use a laptop as my primary workstation. Sometimes I work alone on it, but a significant portion of the time, I'm at my office desk and I hook up an external monitor to increase my workspace. Every time I perform this action, I click the same dialog boxes in Windows Vista to setup the dual screen and position the window. It seems like ...

What is the most efficent way to get a Range "set difference" in Excel Automation?

Given a pair of ranges, where one is known to contain elements of another: src = ActiveSheet.UsedRange sel = src.SpecialCells(xlCellTypeVisible) what is the most efficient way to get a new range that represents the set difference between these two ranges, i.e., the cells in src that are not in sel? This can be done using a loop over ...

Any way to access cookies in SilkTest?

We're testing a web application using SilkTest 2008R2, and need to check the value of the cookies periodically. We currently use javascript via the ExecLine function: BrowserPage.ExecLine ("alert(document.cookie.split(';').join('/n'))", TRUE) and then just read the text off the resulting popup. This is somewhat errorprone. Is there...

Word automation find out if a bookmark is in a table

I am using Word Automation to manipulate some documents (yuk!). I am using this command to get a bookmark within a document. Object oBookmark = "MyBookmarkName"; Range oRngoBookmark = wordDocument.Bookmarks.get_Item(ref oBookmark).Range; What I want to find out is if that bookmark is in a table in the document or not. Is there an easy...

Powershell and Automation

I am just having a look at using Powershell, along with VI-Toolkit, to produce reports and charts showing VMware ESX performance and resource usage. So far, so good. But I am having trouble with doing the automation of chart objects (using OWC11.ChartSpace). As an example, I want to be able to control the x and y axes in terms of maximum...

How to control processes in a Hyper-V VM's console?

I want to script the building of a Hyper-V VM as part of a build process. Specifically I need to be able to launch processes, perhaps sending keys into the VM as well, but as long as I can launch processes with specific command-lines I think I'll be good. I'm already aware of this useful library: http://www.codeplex.com/PSHyperv, but i...

Web automation

I'm developing an interface between an old web based application and another one. That old web-based application works fine but there no exists any API to communicate with. There is any programmatic way to say a web-form something like: enter this value on this field, this one ins other and submit form? UPDATE: I looking for something ...

Progammatically restart windows to make system logs think user logged out.

I'm hoping to make a quick script to log-out/restart windows at a set time. For example, start a script to "Restart windows in ten minutes". For this implementation I don't need it to run in the background or pop=up on its own. I just want to set the script and walk away knowing that the computer will log-out/restart at a set time. Why...

Can I access a DOM object with Selenium?

I am coming from a QuickTest Pro background where I can get to any element's DOM object with the .object method. I want to know what the equivalent is in Selenium RC. ...

UI Automation in Citrix

I would like to be able to use a tool like WatiN to automate somethings that needs to interact with a Web App that is access by using an instance of IE running on Citrix. So far it seems impossible to interact with the window at even a rudimentary level using SendKeys as the internal UI components seemingly do not have a handle. Has an...

How can I automate creating IIS script mappings

I would like to automate the following task with a script to create an IIS script mappings for my project: Go to Control Panel | Administrative Tools Open Internet Information Services Right-click the Default web site and select Properties. In the Properties dialog-box select the 'home Directory' tab. Click on the configuration button ...

Scripting a GUI from within a Windows Service?

I would like to automate a windows app that comes only with as a GUI app (no support for command-line). The automation itself is relatively straightforward with AutoIt. Yet, I am wondering, is-it possible to launch the Windows App from with a windows service (that would simply call the AutoIt script)? ...

Lighting Control with the Arduino

I'd like to start out with the Arduino to make something that will (preferably) dim my room lights and turn on some recessed lighting for my computer when a button or switch is activated. First of all, is this even possible with the Arduino? Secondly, how would I switch on and off real lights with it? Some sort of relay, maybe? Doe...

auto-execute method

how could i have the web server execute a certain method on the 1st of each month at 10am? and if the server is down at that time, what could be a way to ensure that the method executes when the server returns.. any thoughts would be appreciated.. EDIT: yeah, windows server ...

Is there a .Net interface to Oracle SQLPLUS?

Hi, I'm developing some automation to control the execution of SQL scripts. The scripts are run through SQLPLUS and contain PL/SQL calls in them (hence I can't run them through ODP.NET). I was wondering if there was a .NET interface to SQLPLUS? If so has anyone used it? Cheers Rich ...

Internet Explorer Automation: how to suppress Open/Save dialog?

When controlling IE instance via MSHTML, how to suppress Open/Save dialogs for non-HTML content? I need to get data from another system and import it into our one. Due to budget constraints no development (e.g. WS) can be done on the other side for some time, so my only option for now is to do web scrapping. The remote site is ASP.NET-...

Using EnvDTE.Solution - How to Remove Source Control Bindings

How do I use the EnvDTE.Solution API to remove TFS source control bindings from the solution file? I know I can open the file in notepad and delete the GlobalSection portion, but I'm not sure if (or how) I can do this within the method below... public void Export(Solution solution, TemplateInput model) { if(model.RemoveSourceCont...

Accessing Microsoft Automation Objects from Python

I have a set of macros that I have turned into an add-in in excel. The macros allow me to interact with another program that has what are called Microsoft Automation Objects that provide some control over what the other program does. For example, I have a filter tool in the add-in that filters the list provided by the other program to ...