automation

git-svn: automatically importing/creating svn revisions as git tags

三世轮回 提交于 2019-12-12 13:09:52
问题 I am using git-svn to work with a svn repository. The git master branch is mirroring the svn trunk branch (the only svn branch in use), i.e. there is a one to one relation between elements on the master branch and the trunk branch. I want to have git tags that corresponds to svn revisions, so that I can do things like for instance git diff r123 workbranch to see what I have done compared to svn revision 123. The revisions are not tagged when I do git svn rebase , so I have created the

Linux automated code formatting (PHP, JavaScript, HTML, CSS, MySQL)

帅比萌擦擦* 提交于 2019-12-12 13:07:31
问题 I am seeking a Linux or PHP program to automate code formatting. Optimally it would handle many languages, but the priority is (highest first): PHP, JavaScript, HTML, CSS and MySQL. Comparability is nice, but not the most important feature. Context / use: automation via Subversion post-commit. I'm working with teams and want to always follow a single method of formatting. 回答1: Astyle is the canonical answer if you insist on just one. You likely cannot get a single formatter for many langauges

UIATarget.onAlert = function onAlert(alert) Issue - Script doesn't seem to go into block correctly

南楼画角 提交于 2019-12-12 12:17:02
问题 Thanks firstly for taking the time to read and hopefully offer some incite into my issue. At the moment, I'm quite simply trying automate logging in and logging out of an app that my company is making using Instruments. I ran into a few small issues (as you can see with the password entry, I roll char by char instead of using string because of a strange typing issue). The issue is that when I get the alert pop up to the screen I wish to tap the Logout button. However, it seems that I never

Select option on dropdown list for web ui testing automation in windows powershell

给你一囗甜甜゛ 提交于 2019-12-12 12:17:00
问题 Sorry if this is too easy of a question, but I'm fairly new to Windows Powershell and all of the tutorials I've looked at for dropdown lists show you how to display one to the user. Anyway what I am trying to do is test my web application using Powershell. I need to change a dropdownlist to a specific choice, I can use the value or index to do this it doesn't matter to me. Thanks for any help you can give. 回答1: Turns out the easiest way to do it was to just set the value of the control to the

How to make mechanize not fail with forms on this page?

旧街凉风 提交于 2019-12-12 11:41:07
问题 import mechanize url = 'http://steamcommunity.com' br=mechanize.Browser(factory=mechanize.RobustFactory()) br.open(url) print br.request print br.form for each in br.forms(): print each print The above code results in: Traceback (most recent call last): File "./mech_test.py", line 12, in <module> for each in br.forms(): File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 426, in forms File "build/bdist.linux-i686/egg/mechanize/_html.py", line 559, in forms File "build/bdist.linux

Functional test of an android app using appium and python

旧巷老猫 提交于 2019-12-12 11:11:57
问题 This is the python code to check if the recording works fine : def setUp(self):"Setup for the test" desired_caps = {} desired_caps['browserName']='' desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.2' desired_caps['deviceName'] = 'd65d04425101de' # Returns abs path relative to this file and not cwd desired_caps['app'] = '/home/karthik/appiumworkspace/tests/app-debug (2).apk' desired_caps['appPackage'] = 'com.prueba.maverick' desired_caps['app-activity'] = '

Auto minify Javascript/CSS files after update?

自闭症网瘾萝莉.ら 提交于 2019-12-12 10:53:49
问题 I know of ways to minify JS and CSS files but is there a way to auto-minify these files in the production system? For instance, I modify something inside the original JS files and update the production environment. However, while using the JS files, it should use an auto-minified version of the JS file (preferably update the current minified version if the source files changed). Considering that I work in both Unix and Windows environment, writing a bash script did not seem like a plausible

How to get Chrome to remember login on forms?

一曲冷凌霜 提交于 2019-12-12 10:18:34
问题 On many websites when you login via Chrome it will offer to remember your login details. I have a login form and this does not happen. Here's the form: <form action="/login" method="post"> <label for="username">Email Address:</label> <input id="username" name="username" autofocus="autofocus" required="required" type="email" size="25" autocomplete="off"/> <label for="password">Password:</label> <input id="password" name="password" required="required" type="password" size="25" autocomplete="off

Exporting a list to OpenOffice Calc from Delphi

一个人想着一个人 提交于 2019-12-12 09:46:06
问题 I'm using Delphi 7 and I'd like to export the contents of a list from my program to OpenOffice Calc using automation, instead of using files. The task is simple: create new document, iterate through rows/columns and change cell data. I've found some code but it's not complete, and I was hoping someone has some example code ready to accomplish this very simple task. It could save me a few hours of trying. Thanks in advance! Edit: I'd like to automate OpenOffice Calc to achieve what I wrote

WPF Equivalent to SendInput?

此生再无相见时 提交于 2019-12-12 09:28:07
问题 Is there an equivalent to SendInput for WPF? I've looked into AutomationPeer classes but was not successfull. I simply want to send a Keydown (the Enter Key). Simply raising the event ( RaiseEvent ) does not work in my scenario. Here is what I have, which is working. I'd prefer to have a managed code alternative. private void comboSelectionChanged(object sender, SelectionChangedEventArgs args) { ((ComboBox)sender).Focus(); // send keydown INPUT input = new INPUT(); input.type = INPUT_KEYBOARD