This document describes how to setup a repl for selendroid based on Python. It uses the Selenium Python bindings.
#!/usr/bin/perl | |
# | |
# Pre-commit hook for running checkstyle on changed Java sources | |
# | |
# To use this you need: | |
# 1. checkstyle's jar file somewhere | |
# 2. a checkstyle XML check file somewhere | |
# 3. To configure git: | |
# * git config --add checkstyle.jar <location of jar> | |
# * git config --add checkstyle.checkfile <location of checkfile> |
#! /bin/bash | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2022 Diego Torres Milano. All rights reserved. | |
# | |
# The simplest way to invoke this script is creating a function like | |
# this one in your shell startup file: | |
# | |
# ``` | |
# adb () |
{ | |
"desiredCapabilities":{ | |
"screenSize":"320x480", | |
"emulator":true, | |
"locale":"en_US", | |
"androidTarget":"ANDROID16", | |
"aut":"io.selendroid.testapp:0.4-SNAPSHOT" | |
} | |
} |
''' | |
@author: Dominik Dary | |
''' | |
import unittest | |
from selenium import webdriver | |
class FindElementTest(unittest.TestCase): | |
def setUp(self): |
from selenium import webdriver; | |
from selenium.webdriver.common.action_chains import ActionChains; | |
driver=webdriver.Remote(desired_capabilities={'aut': 'io.selendroid.testapp:0.8.0-SNAPSHOT','emulator':True}) ; | |
chain = ActionChains(driver); | |
""" Send search key, enter the text "Selendroid" and press the "Enter key" """ | |
chain.send_keys(u'\ue103'+'Selendroid'+u'\ue007').perform(); |
//Source: http://stackoverflow.com/a/18453384 | |
public static boolean setProxy(WebView webview, String host, int port) { | |
// 3.2 (HC) or lower | |
if (Build.VERSION.SDK_INT <= 13) { | |
return setProxyUpToHC(webview, host, port); | |
} | |
// ICS: 4.0 | |
else if (Build.VERSION.SDK_INT <= 15){ | |
return setProxyICS(webview, host, port); | |
} |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>group</groupId> | |
<artifactId>dummy</artifactId> | |
<name>Dummy Project</name> | |
<version>1.0.12</version> | |
<packaging>pom</packaging> | |
<scm> | |
<connection>scm:git:https://......</connection> | |
<tag>HEAD</tag> |
I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.
I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.
The Jenkins Build Status History widget periodically fetches a snapshot of build status information for a specified list of jobs on a Jenkins CI server.
As time progresses, new build status samples are added to the right, while older samples are removed from the left. This view allows you to quickly see the health of your jobs as well as any time trends.
Calls are made to the Jenkins API to retrieve the name and color properties of listed jobs in a JSON form. The color of a given job represents its current build status (i.e. "blue" => successful build, "red" => failing build and so on).