Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Tset-Noitamotua's full-sized avatar
🤖
Working from home

Tset Noitamotua Tset-Noitamotua

🤖
Working from home
  • Secret Agency
  • Germany
View GitHub Profile
@Tset-Noitamotua
Tset-Noitamotua / jybottest.bat
Created November 16, 2015 09:36 — forked from imikemo/jybottest.bat
Batch file for running Sikuli test cases using jybot
@echo off
set sikuli_jar=C:\Program Files\Sikuli X\sikuli-script.jar
set CLASSPATH=%sikuli_jar%
set JYTHONPATH=%sikuli_jar%/Lib
jybot --pythonpath=calc.sikuli ^
--outputdir=results ^
--loglevel=TRACE ^
@Tset-Noitamotua
Tset-Noitamotua / get_sel_vers.py
Created November 16, 2015 10:38 — forked from bmannix/get_sel_vers.py
get Selenium version used by Selenium2Library and log it
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
def log_s2l_version():
"""
Gets the Selenium version used by Selenium2Library
"""
seleniumlib = BuiltIn().get_library_instance('Selenium2Library')
browser = seleniumlib._current_browser()
sel_version = locals()['webdriver'].__version__
@Tset-Noitamotua
Tset-Noitamotua / CI-Ideas.md
Created November 18, 2015 10:41
Collecting ideas for CI process
  • tool chain
  • workflow
  • requirements DEV / QS (QA)
  • file / folder structure & naming conventions
  • documentation
@Tset-Noitamotua
Tset-Noitamotua / docker_behind_proxy.md
Last active November 19, 2015 07:44
HOW TO: Use Docker behind proxy (on Windows)

OPTION I

Start the Docker Quickstart Terminal and follow this steps ($ ==> terminal prompt):

$ docker-machine start default

$ eval $(docker-machine env default )

ssh into the machine named 'default' and update docker VM's /var/lib/boot2docker/profile

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@Tset-Noitamotua
Tset-Noitamotua / gist:cb0f20002c73f2fc1556080ceaa8743d
Last active September 18, 2016 13:02
OS X 10.11 El Capitan – bootfähigen USB-Stick erstellen
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Name-des-USB-Sticks/ --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app/ --nointeraction
@Tset-Noitamotua
Tset-Noitamotua / rerun_suite_setup.robot
Created September 27, 2016 16:12
Robot Framework - Rerunning Suite Setup
# Actually in your __init__ file you can wrap all potential failures into Wait Until Keyword Succeeds or even all suite it and do sth like
# Example 1
***Settings***
Suite Setup Setup
***Keywords***
Suite Setup
Keyword 1
Keyword 2

Windows Users

Windows Bit-version Assumption

  • Execution is on a 64-bit version of Windows. To maintain continuity, we will be keeping almost everything "bit-aligned" so that executables and libraries will all be 64-bit.
  • The one possible exception to this is for Internet Explorer's Selenium Driver. See why that is below.

Configure Environment

  1. Download the appropriate browser drivers:
@Tset-Noitamotua
Tset-Noitamotua / .zshrc
Last active January 15, 2017 15:57
my .dotfiles
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/MyMac/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bullet-train"
@Tset-Noitamotua
Tset-Noitamotua / example_001.py
Created January 19, 2017 10:02
pywinauto examples
from pywinauto import Desktop, Application
Application().start('explorer.exe "C:\\Program Files"')
# connect to another process spawned by explorer.exe
app = Application(backend="uia").connect(path="explorer.exe", title="Program Files")
app.ProgramFiles.set_focus()
common_files = app.ProgramFiles.ItemsView.get_item('Common Files')
common_files.right_click_input()