Questions tagged [automation]

Automation is the process of having a computer do a repetitive task or a task that requires great precision or multiple steps, without requiring human intervention.

Automation is the process of having a computer do a repetitive task or a task that requires great precision or multiple steps, without requiring human intervention.

The term was originally used to refer to the operation of machinery without human supervision, frequently in manufacturing processes.

It is now used to refer to a variety of processes, including:

Examples of Stand-Alone Automation Tools

23535 questions
77
votes
14 answers

.doc to pdf using python

I'am tasked with converting tons of .doc files to .pdf. And the only way my supervisor wants me to do this is through MSWord 2010. I know I should be able to automate this with python COM automation. Only problem is I dont know how and where to…
nik
  • 8,387
  • 13
  • 36
  • 44
76
votes
27 answers

Switch tabs using Selenium WebDriver with Java

Using Selenium WebDriver with Java. I am trying to automate a functionality where I have to open a new tab do some operations there and come back to previous tab (Parent). I used switch handle but it's not working. And one strange thing the two tabs…
Umesh Kumar
  • 1,387
  • 2
  • 16
  • 34
72
votes
4 answers

Don't make me manually abort a LaTeX compile when there's an error

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you're working on a document you'll end up with errors and then latex will panic and wait for user input before continuing. …
dreeves
  • 26,430
  • 45
  • 154
  • 229
72
votes
4 answers

What is test harness?

I am facing some difficulties in understanding test harness and related common terms like test case, test scripts in automation testing. So this is what I got so far: Automation testing is the use of a special software (other than the software…
coffeeak
  • 2,980
  • 7
  • 44
  • 87
71
votes
9 answers

Automating running command on Linux from Windows using PuTTY

I have a scenario where I need to run a linux shell command frequently (with different filenames) from windows. I am using PuTTY and WinSCP to do that (requires login name and password). The file is copied to a predefined folder in the linux…
Nemo
  • 24,540
  • 12
  • 45
  • 61
70
votes
14 answers

headless internet browser?

I would like to do the following. Log into a website, click a couple of specific links, then click a download link. I'd like to run this as either a scheduled task on windows or cron job on Linux. I'm not picky about the language I use, but I'd like…
Jared
  • 39,513
  • 29
  • 110
  • 145
68
votes
8 answers

Dead code detection in legacy C/C++ project

How would you go about dead code detection in C/C++ code? I have a pretty large code base to work with and at least 10-15% is dead code. Is there any Unix based tool to identify this areas? Some pieces of code still use a lot of preprocessor, can…
Nazgob
  • 8,502
  • 4
  • 40
  • 42
65
votes
7 answers

How do I know if PDF pages are color or black-and-white?

Given a set of PDF files among which some pages are color and the remaining are black & white, is there any program to find out among the given pages which are color and which are black & white? This would be useful, for instance, in printing out a…
Anil
  • 3,912
  • 5
  • 35
  • 46
64
votes
7 answers

How to automate documentation of a REST API (Jersey Implementation)

I have written a pretty extensive REST API using Java Jersey (and JAXB). I have also written the documentation using a Wiki, but its been a totally manual process, which is very error-prone, especially when we need to make modifications, people tend…
Alan Mc Kernan
  • 763
  • 1
  • 6
  • 7
63
votes
5 answers

Puppeteer wait for all images to load then take screenshot

I am using Puppeteer to try to take a screenshot of a website after all images have loaded but can't get it to work. Here is the code I've got so far, I am using https://www.digg.com as the example website: const puppeteer =…
Petar Vasilev
  • 4,281
  • 5
  • 40
  • 74
62
votes
14 answers

Automated unit testing with JavaScript

I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently JSUnit works well with JUnit, but it seems to be abandonware and lacks good support for Ajax, debugging, and timeouts. Has anyone had any luck…
Chris MacDonald
  • 5,975
  • 4
  • 34
  • 35
61
votes
3 answers

Install Docker Toolbox on a Mac via command line

I am trying to automate setting up a developer environment on Mac. Part of that setup is installing the Docker Toolbox. I cannot find any documentation on how do to this via command line. How can I automate this installation (must be triggered via…
Rylander
  • 19,449
  • 25
  • 93
  • 144
57
votes
6 answers

Automatically (or more easily) reconnect to a screen session after network interruption

ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen completely transparently and automatically See also this related…
dreeves
  • 26,430
  • 45
  • 154
  • 229
56
votes
3 answers

Human-like mouse movements via Selenium

The Story: One of the approaches to solve captchas, like Google ReCaptcha, is to try to imitate the human mouse actions: movements, hovering and clicks. Some users reported that making mouse moves as B-spline curves worked for them. The…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
54
votes
5 answers

How to Automatically Start a Download in PHP?

What code do you need to add in PHP to automatically have the browser download a file to the local machine when a link is visited? I am specifically thinking of functionality similar to that of download sites that prompt the user to save a file to…
kaybenleroll
  • 16,794
  • 16
  • 54
  • 66