Skip to content

Instantly share code, notes, and snippets.

View derinbay's full-sized avatar

Taylan Derinbay derinbay

View GitHub Profile
export ANDROID_HOME=/usr/local/Cellar/android-sdk/24.4.1_1
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# 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
{
"locale": "tr",
"conversationId": "123456789",
"price": "1.0",
"basketId": "B67832",
"paymentGroup": "PRODUCT",
"buyer": {
"id": "BY789",
"name": "John",
"surname": "Doe",
{
"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>",
public void loadElementsForApp(Object webComponent) {
PageFactory.initElements(new AppiumFieldDecorator(webDriver), webComponent);
}
public void loadElementsForApp() {
PageFactory.initElements(new AppiumFieldDecorator(webDriver), page);
}
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
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)
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");
@derinbay
derinbay / checkDeployment.sh
Created March 8, 2018 08:00
deployment check for jenkins
#!/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
#!/bin/bash
#Usage:slackpost<token><channel><message>
#Enterthenameofyourslackhosthere-thethingthatappearsinyourURL:
#https://slackhost.slack.com/
slackhost=n11dev
token=$1