Skip to content

Instantly share code, notes, and snippets.

View Schveitzer's full-sized avatar

Alan Schveitzer Schveitzer

View GitHub Profile
{
"id": {{$randomInt}},
"title": "{{$randomProductName}}",
"description": "{{$randomPhrase}}",
"pageCount": {{$randomInt}},
"excerpt": "{{$randomEmail}}",
"publishDate": "{{$isoTimestamp}}"
}
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"
{
"id": 0,
"title": "string",
"description": "string",
"pageCount": 0,
"excerpt": "string",
"publishDate": "2022-08-09T17:00:04.978Z"
}
{
"data": {
"bitcoin": {
"transactions": [
{
"txVolUSD": 21041536812.390724,
"date": {
"date": "2020-10-10"
}
}
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
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"}}'
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')
// 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
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',
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();