automation

Locating most recently updated file recursively in UNIX

For a website I'm working on I want to be able to automatically update the "This page was last modified:" section in the footer as I'm doing my nightly git commit. Essentially I plan on writing a shell script to run at midnight each night which will do all of my general server maintenance. Most of these tasks I already know how to automa...

Automate Sass execution thru terminal (os x) via script

I started using Haml/Sass thru Rubygems recently, and I'm really liking it (although that doesn't have much to do with my question)... I would like to create a simple script I can throw in the root directory of each of my projects that will launch terminal, cd to my CSS folder, and run sass. so essentially a script that: cd ~/path_to_h...

How to use ADB to send touch events to device using sendevent command?

Hi I am trying to send touch events to a device using AndroidDebugBridge, so that I can do some basic automation for UI tests. I have followed the discussion in LINK. I am able to use sendevent to simulate touch on emulators, but unable to do the same on a device. Like in above link the emulator seems to send out 6 events for each tou...

How can I get captureScreenWithName in UIAutomation working in iPhone Simulator?

Hi, I am new to iPhone Automation, and also UIAutomation introduced by iOS4. Recently I am using UIAutomation to automate testing app on iPhone Simulator, everything goes well, until I need to take screenshots using captureScreenWithName provided by UIAutomation API. But it did not work for me, I Googled, and found that it seems this met...

Simplest way to automate ticket adding in Trac from C/C++

Hello, I developing program and i writing error handler, i want to do in her automate error ticket adding to trac webapge. Anyone know simplest way to do this? Simplest of connecting libcurl to PHP script on server who adding ticket. Maybe some library to do this? Or working code snipet? ...

Improve performance of MS Excel writing

Hi, I am facing performance issues while reading/writing data from/to MS-Excel cells. I am using MS Excel 11.0 object library for automation with VB.NET. Currently it takes too much time to read and write from/to Excel files. (10 mins to read 1000 rows :( ). It seems the cell-by-cell reading and writing approach is not that effiecient....

How do I get unit tests to run continuously in Visual Studio

Maybe I'm using unit tests in the wrong way, but I have a very large database with a lot of data. Each set of data presents a different scenario and the number of scenarios is too large to individually test. Therefore, I've decided the best way to get adequate coverage is to run the unit test against the data as many times as I could, a...

How do I programatically click on a bookmarklet that opens a Javascript window and verify the window's contents?

I want to open a specific URL(relatively easy to achieve in Watir/WatiN), then click on a bookmark/bookmarklet which in turn opens a Javascript window in which certain links then appear. I want to be able to verify links' wording and URLs. The "problem" is having to use IE (7 & 8) and not Firefox which prevents me from using Selenium ID...

What tools exist in Perl 5 for automating external programs?

Besides modules that are specific to a given service (like ClearCase::Proc::ClearTool), what modules or built-in functions exist to automate external programs? ...

script that automatically logs in a website and download a file

Hi Experts, I need to login to a website with username and password, and then download a file. The url of the file is static. How do I automate the above process with Linux/Unix scripts? Thanks a lot. Jiangzhe ...

Automating an ASP.NET Web Form

I have an ASP.NET web form that reads a file and writes some data to a database. I need to run this process on a scheduled basis. Currently, I have a scheduled task that calls a batch file. The batch file then opens Internet Explorer and navigates to the URL and the process is fired. There is another scheduled batch file that closes In...

how can i load autocomplete with jquery on click event???

how can i load autocomplete with jquery on click event??? ...

How can I mimic user operation while machine is locked

I have created a program in java which will emulate user activity in windows operating system (like clicking left mouse button), but as soon as I lock my system the activity also stops. Is there any way to keep it running. Let me know if any more details are required.... ...

Equivalent of AutoIt for Mac OS X?

AutoIt is a Windows tool to automate UI tasks, for testing or scripting. It supports basic commands like moving the mouse, clicking its buttons, simulating keystrokes. Beyond that it also recognizes windows controls and can interact with them easily. It sports a scripting language to write macros, with loops, ifs, etc. I'm looking for a...

How to automate script generation using SMO in SQL Server?

I would like to automate script generation (in SSMS --> Tasks --> Generate Scripts) in SSMS 2008. I have read that SQL Server 2008 does not support Database Publishing Wizard (including SQLPUBWIZ SCRIPT) but this automation can be done using SMO in SQL Server 2008. I don't have a clue about SMO and how to do this using SMO, so could you ...

How to create a program on top of Visio?

Is it possible to make a standalone/independent (from visio) program that is built on visio. Say, can i attach some of the design templates and visio drawing page on to my form?? Thanks ...

IE Automation error in C# App

The following code, public class IEBrowser { SHDocVw.InternetExplorer view = new SHDocVw.InternetExplorer(); public void Display(String url) { // make sure it's open if (!view.Visible) view.Visible = true; view.Navigate(url); } } works as expected on the first call to Display. However, the ne...

PHP script "update process" management tutorials

Hi, We are creating a php script project; which we will be selling to customers. The customers can host the script on their web server. We would like to develop an update or upgrade process for this script. Means if a customer is using the version 1.2 of the script and we have released the new version 1.3 of the script, the users w...

Log every window activated in MS Windows using Python based on AHK example

I'm trying to rewrite the following autohotkey script in Python: Gui +LastFound DllCall( "RegisterShellHookWindow", UInt,WinExist() ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( MsgNum, "ShellMessage" ) LastActiveWindowID := WinActive("A") Return ; // End...

Deploy PHP web system to multiple locations

I am developing (solo web developer) a rather large web based system which needs to run at various different locations. Unfortunately, due to some clients having dialup, we have had to do this and not have a central server for them all. Each client is part of our VPN, and those on dialup/ISDN get dialed on demand from our Cisco router. A...