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
import urllib2 | |
from bs4 import BeautifulSoup | |
numero_expediente = 61333 | |
url = "http://www.concejodeliberante.laplata.gov.ar/MesaEntradas/expediente.asp?Numero={}&Buscar=Enviar".format(numero_expediente) | |
page = urllib2.urlopen(url) | |
soup = BeautifulSoup(page, 'html.parser') | |
expediente = { | |
"id": [text for text in soup.table.find_all('tr')[0].find_all('li')[0].stripped_strings][1], |
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
# trigger pipeline start | |
curl --request POST \ | |
--url http://lab-tools-app1-staging.east/api/queues/pipeline.started.v1/produce \ | |
--header 'content-type: application/json' \ | |
--data '{ | |
"_payload": { | |
"s3_sequence_url": "s3://ubiome-raw/production/NS500457/seqRun_{{seqRunId}}/180529_NS500457_0340_AH37LHAFXY", | |
"annotation_id": 538 | |
}, | |
"_user_id": "{{tuUserIdDeUbiome}}" |
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
echo "export PATH=$PATH:$HOME/path_wish_to_export" >> wher_to_export (.profile, .bash_rc) |
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
#Actual: | |
adb shell am instrument -w -r | |
-e debug $DEBUG_FLAG | |
-e class $TEST_CLASS_NAME $TEST_APK | |
-e COUNTRY_CODE $COUNTRY_CODE | |
#con spoon-client: | |
./gradlew spoon | |
-PclassName=$TEST_CLASS_NAME | |
-PapkToTest=$DECOLAR/DESPEGAR_PKG_ID |
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 | |
# Script adb+ | |
# Usage | |
# You can run any command adb provide on all your current devices | |
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
# | |
# Examples | |
# ./adb+ version | |
# ./adb+ install apidemo.apk | |
# ./adb+ uninstall com.example.android.apis |
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
var webElement = element(locator); | |
// Click en el elemento | |
webElement.click(); | |
// Simula el teclado manda valores. | |
webElement.sendKeys('my text'); | |
// Limpia el contenido. Normalmente de un input | |
webElement.clear(); |
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
// encontrar un elemento usando selectores css | |
by.css('.myclass') | |
// encontrar un elemento dado un id | |
by.id('myid') | |
// encontrar un elemento mediante la directiva de angular ng-model | |
by.model('name') | |
// encontrar un elemento atado a una variable |
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
/** | |
* Describe suite -> inicio | |
* * pre-condiciones -> hook(before) | |
* * * test-A -> it | |
* * * * asserts -> expect | |
* * * test-B -> it | |
* * * * asserts -> expect | |
* * post-condiciones -> hook(after) | |
* Describe suite -> fin | |
**/ |