This file contains 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
export ANDROID_HOME=/usr/local/Cellar/android-sdk/24.4.1_1 | |
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools |
This file contains 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
# Homebrew Script for OSX | |
# To execute: save and `chmod +x ./brew-install-script.sh` then `./brew-install-script.sh` | |
echo "Installing brew..." | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo "Installing brew cask..." | |
brew install caskroom/cask/brew-cask | |
brew tap caskroom/versions |
This file contains 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
{ | |
"locale": "tr", | |
"conversationId": "123456789", | |
"price": "1.0", | |
"basketId": "B67832", | |
"paymentGroup": "PRODUCT", | |
"buyer": { | |
"id": "BY789", | |
"name": "John", | |
"surname": "Doe", |
This file contains 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
{ | |
"status": "success", | |
"locale": "tr", | |
"systemTime": 1470731039071, | |
"conversationId": "123456789", | |
"token": "xxxxxxxxxxxx", | |
"checkoutFormContent": "<script type=\"text/javascript\">if (typeof iyziInit == 'undefined') {var iyziInit = {currency:'TRY',token:'d9a1d90e-7cfb-4ead-a6ec-34237bac04f0',price:1.20,locale:'tr',baseUrl:'https://sandbox-api.iyzipay.com',registerCardEnabled:true,bkmEnabled:true,userCards:[],force3Ds:false, isSandbox:true, createTag:function(){var iyziCSSTag = document.createElement('link');iyziCSSTag.setAttribute('rel','stylesheet');iyziCSSTag.setAttribute('type','text/css');iyziCSSTag.setAttribute('href','https://sandbox-static.iyzipay.com/checkoutform/css/main.min.css?v=1470731039031');document.head.appendChild(iyziCSSTag);var iyziJSTag = document.createElement('script');iyziJSTag.setAttribute('src','https://sandbox-static.iyzipay.com/checkoutform/js/iyziCheckout.min.js?v=1470731039031');document.head.appendChild(iyziJSTag);}};iyziInit.createTag();}</script>", | |
This file contains 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
public void loadElementsForApp(Object webComponent) { | |
PageFactory.initElements(new AppiumFieldDecorator(webDriver), webComponent); | |
} | |
public void loadElementsForApp() { | |
PageFactory.initElements(new AppiumFieldDecorator(webDriver), page); | |
} |
This file contains 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
seleniumhub: | |
image: selenium/hub:3.3.1-cesium | |
ports: | |
- 4444:4444 | |
environment: | |
- GRID_BROWSER_TIMEOUT=300 | |
- GRID_TIMEOUT=720 | |
chromenode: | |
image: selenium/node-chrome:3.3.1-cesium |
This file contains 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
sudo apt-get update | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
#apt-cache policy docker-engine | |
sudo apt-get install -y docker-engine | |
#sudo systemctl status docker | |
sudo usermod -aG docker $(whoami) |
This file contains 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
DesiredCapabilities capability = new DesiredCapabilities(); | |
capability.setCapability(CapabilityType.VERSION, "7.1"); | |
capability.setCapability(MobileCapabilityType.DEVICE_NAME, "Emulator"); | |
capability.setCapability(MobileCapabilityType.UDID, null); | |
capability.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, timeOut); | |
capability.setCapability(MobileCapabilityType.APP, POOL_WEB_SERVICE_URL + "mobileapps/mfandroid-automation.apk"); | |
capability.setCapability(MobileCapabilityType.BROWSER_NAME, "android"); | |
capability.setCapability(MobileCapabilityType.AUTOMATION_NAME, "UiAutomator2"); | |
capability.setCapability("appActivity", "com.dmall.mfandroid.activity.base.NHomeActivity"); |
This file contains 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
#!/usr/bin/bash | |
CURL='/usr/bin/curl' | |
CURLARGS="-g" | |
URL="https://taylan:[email protected]/api/xml?tree=jobs[name,color]&xpath=/hudson/job[ends-with(color/text(),\"_anime\")]&wrapper=jobs" | |
raw=$($CURL $CURLARGS $URL) | |
echo $raw | |
if [[ $raw = *"QA"* ]] && [[ $raw = *"Release"* ]]; then |
This file contains 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
#!/bin/bash | |
#Usage:slackpost<token><channel><message> | |
#Enterthenameofyourslackhosthere-thethingthatappearsinyourURL: | |
#https://slackhost.slack.com/ | |
slackhost=n11dev | |
token=$1 |
OlderNewer