- First locate your jenkins.war file, most of time it is located in /usr/share/jenkins
- Rename jenkins.war to jenkins.war.old
mv jenkins.war jenkins.war.old
- Get a version from jenkins example: http://updates.jenkins-ci.org/stable-2.32/latest/jenkins.war
sudo wget http://updates.jenkins-ci.org/stable-2.32/latest/jenkins.war
- Now start or restart jenkins service
sudo service jenkins restart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Define fluent wait | |
FluentWait wait = new FluentWait(driver) | |
.withTimeout(15, TimeUnit.SECONDS) | |
.pollingEvery(1,TimeUnit.SECONDS) | |
.ignoring(NoSuchElementException.class); | |
wait.until(new ExpectedCondition<Boolean>() { | |
@Override | |
public Boolean apply(WebDriver d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appium -a 127.0.0.1 -p 4723 --chromedriver-port 9515 --chromedriver-executable /Users/Jinesh/Documents/Jinesh/xxxx/workspace/Appium/Java/lib/chromedriver --no-reset | |
[Appium] Welcome to Appium v1.6.5 | |
[Appium] Non-default server args: | |
[Appium] address: 127.0.0.1 | |
[Appium] chromeDriverPort: 9515 | |
[Appium] chromedriverExecutable: /Users/Jinesh/Documents/Jinesh/xxxx/workspace/Appium/Java/lib/chromedriver | |
[Appium] noReset: true | |
[Appium] Deprecated server args: | |
[Appium] --no-reset => --default-capabilities '{"noReset":true}' | |
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities: |
$ cat a.txt
hello
This line starts with T and finishes with e
foo
With JQ installed - output of this command is string with quotes
xcrun simctl list --json | jq '.devices["iOS 12.0"] [] | select(.name=="iPhone X") | .udid'
With JQ if you don't want quotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension XCUIApplication { | |
private struct Constants { | |
// Half way accross the screen and 10% from top | |
static let topOffset = CGVector(dx: 0.5, dy: 0.1) | |
// Half way accross the screen and 90% from top | |
static let bottomOffset = CGVector(dx: 0.5, dy: 0.9) | |
} | |
var screenTopCoordinate: XCUICoordinate { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copied from https://stackoverflow.com/a/49944637 | |
import XCTest | |
enum TestSwipeDirections { | |
case up | |
case down | |
case left | |
case right | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erase_sim: | |
./reset_sim.sh 2>/dev/null; true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to list the sessions and their status | |
screen -ls | |
# to start a session with a given name. The name should be unique | |
screen -S session_name | |
# to start a session without going into it | |
screen -dmS session_name /path/to/script/file.sh |
OlderNewer