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
| { | |
| "id": {{$randomInt}}, | |
| "title": "{{$randomProductName}}", | |
| "description": "{{$randomPhrase}}", | |
| "pageCount": {{$randomInt}}, | |
| "excerpt": "{{$randomEmail}}", | |
| "publishDate": "{{$isoTimestamp}}" | |
| } |
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
| curl --location --request POST 'https://fakerestapi.azurewebsites.net/api/v1/Books' \ | |
| --header 'accept: */*' \ | |
| --header 'Content-Type: application/json; v=1.0' \ | |
| --data-raw '{ | |
| "id": 0, | |
| "title": "string", | |
| "description": "string", | |
| "pageCount": 0, | |
| "excerpt": "string", | |
| "publishDate": "2022-08-09T17:00:04.978Z" |
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
| { | |
| "id": 0, | |
| "title": "string", | |
| "description": "string", | |
| "pageCount": 0, | |
| "excerpt": "string", | |
| "publishDate": "2022-08-09T17:00:04.978Z" | |
| } |
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
| { | |
| "data": { | |
| "bitcoin": { | |
| "transactions": [ | |
| { | |
| "txVolUSD": 21041536812.390724, | |
| "date": { | |
| "date": "2020-10-10" | |
| } | |
| } |
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
| version: '3' | |
| services: | |
| master: | |
| image: locustio/locust | |
| ports: | |
| - "8089:8089" | |
| volumes: | |
| - ./:/mnt/locust | |
| command: -f /mnt/locust/bitquery_graphql.py --master -H http://master:8089 |
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
| curl --location --request POST 'https://graphql.bitquery.io' \ | |
| --header 'X-API-KEY: SUACHAVEAQUI' \ | |
| --header 'Content-Type: application/json' \ | |
| --data-raw '{"query":"query($from: ISO8601DateTime, $till: ISO8601DateTime){\n bitcoin{\n transactions(options: {desc: \"date.date\"}, \n date: {since: $from, till: $till}, ) {\n\t\t\ttxVolUSD: inputValue(calculate: sum in: USD)\n date{date}\n }\n }\n}","variables":{"from":"2020-10-10","till":"2020-10-10"}}' |
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
| import json | |
| import os | |
| from locust import TaskSet, task, FastHttpUser, constant | |
| class Bitquery(TaskSet): | |
| def on_start(self): | |
| self.x_api_key = os.getenv('API_KEY') |
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
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
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
| import AppScreen from './app.screen'; | |
| import NativeAlert from '../helpers/NativeAlert'; | |
| const SELECTORS = { | |
| LOGIN_SCREEN: '~Login-screen', | |
| LOGIN_CONTAINER_BUTTON: '~button-login-container', | |
| SIGN_UP_CONTAINER_BUTTON: '~button-sign-up-container', | |
| LOGIN_BUTTON: '~button-LOGIN', | |
| SIGN_UP_BUTTON: '~button-SIGN UP', | |
| INPUT: '~input-email', |
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
| import { assert } from 'chai'; | |
| import { Given, When, Then } from 'cucumber'; | |
| import { context } from '../data/Context'; | |
| import LoginScreen from '../screenobjects/login.screen'; | |
| import * as appMessages from '../Constants/appMessages.constant'; | |
| import { tabBar } from '../screenobjects/components/tabBar'; | |
| Given(/^eu estou na tela de login$/, () => { | |
| tabBar.waitForTabBarShown(true); | |
| tabBar.openLogin(); |
NewerOlder