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
| Very good example of Behave and feature use: https://jenisys.github.io/behave.example/ |
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
| All Asia Asset Cptl | AAA | |
|---|---|---|
| Albemarle & Bond Hldgs | ABM | |
| Aberdeen Asset Mngmnt | ADN | |
| ADVFN | AFN | |
| Alecto Minerals | ALO | |
| Amphion Innovations | AMP | |
| Africa Oilfield | AOL | |
| Alpha Strategic | APS | |
| Arbuthnot Banking | ARBB | |
| Arden Partners | ARDN |
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
| function printStatus () { | |
| string=$1; | |
| status=$2; | |
| lineLength=`tput cols`; | |
| stringLength=${#string}; | |
| statusLength=${#status}; | |
| periodLength=$((lineLength - stringLength - statusLength)); | |
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
| Feature: Login | |
| Login can be performed with validated email | |
| User stays on login page with wrong username/pass | |
| Scenario: Correct Email Pass Combo | |
| Given User Exists | |
| And User has <email> | |
| And User has <password> | |
| When User attempts to login | |
| Then they are given access to the service |
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
| function getReleases(){ | |
| git fetch &>/dev/null; | |
| git checkout develop &>/dev/null; | |
| git pull &>/dev/null; | |
| for k in $(git branch|sed s/^..//); | |
| do | |
| #$k is release name | |
| if [[ $k == *release* || $k == *hotfix* ]]; then |
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
| #!/bin/bash | |
| #Dependencies | |
| #Parallel with Homebrew: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/parallel.rb | |
| #Usage: | |
| #./download-smartling-files.sh <file_type> <api_key> <project_id> | |
| shopt -s nullglob |
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
| #Creates a new issue with custom fields | |
| curl -D- -u uname:pass -X POST --data "{\"fields\": {\"project\": { \"id\": \"10430\" },\"summary\": \"This is a test issue\", \"description\": \"Description\",\"issuetype\": { \"id\" : \"1\"}, \"components\" : [{\"id\":\"10731\"}], \"customfield_10711\" : [{\"id\":\"10500\"}] } }" -H "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/issue/ | |
| #Returns all information for all versions | |
| curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/project/AN/versions? | |
| #Returns all issues in a version | |
| #This URL requires the version ID of a single version which is provided by the above query | |
| curl -D- -u uname:pass -X PUT -d "Content-Type: application/json" http://localhost:8080/jira/rest/api/2/search?jql=project="AN"+AND+fixVersion='12345' |
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
| #Gets screen capture of device every 270 seconds and outputs screencap to timestamped png file in local directory | |
| while true; do adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ScreenCap.`date +%Y`.`date +%m`.`date +%d`-`date +%H`.`date +%M`.`date +%S`.png; sleep 270; done | |
| #Gets logs from device and outputs them to a timestamped file in local directory | |
| while true; do adb logcat -v time > logging`date +%Y`.`date +%m`.`date +%d`-`date +%H`.`date +%M`.`date +%S`.txt; done | |
| #Gets PID of <packagename> | |
| adb shell ps | grep <packagename> | |
| #Outputs battery level to console |
NewerOlder