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 { | |
step, | |
TestSettings, | |
TestData, | |
Until, | |
By, | |
Browser, | |
MouseButtons, | |
Device | |
} from '@flood/element' |
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
step('4. Stay on Live Page', { waitTimeout: 7200 }, async (browser: Browser) => { | |
await browser.evaluate(function looper() { | |
while(true) {} | |
}) | |
}) |
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
# Check we have the jq binary to make parsing JSON responses a bit easier | |
command -v jq >/dev/null 2>&1 || \ | |
{ echo >&2 "Please install http://stedolan.github.io/jq/download/ Aborting."; exit 1; } | |
# Look for an existing grid | |
grid_uuid=$(curl --silent --user $FLOOD_API_TOKEN: https://api.flood.io/grids \ | |
| jq 'if ._embedded.grids[] > 0 then ._embedded.grids[0].uuid else empty end' | tr -d '"' || true) | |
if [[ $grid_uuid == '' ]]; 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
element run visit_live_page_with_login.ts INFRA-942/live-fe-loadtest ✭ ✱ ◼ | |
+0s info: workRootPath: /Volumes/Projects/FloSports/flosports-webapp/tools/loadtest/flood-io-element/tests/tmp/element-results/visit_live_page_with_login/2018-10-02T20:49:07.875Z | |
+0s info: testDataPath: /Volumes/Projects/FloSports/flosports-webapp/tools/loadtest/flood-io-element/tests | |
+3s info: Starting iteration 1 | |
+3s info: | |
+3s info: ===> Step '1. Bootstrap' | |
+8s info: ---> visit() | |
+9s info: ---> click() | |
+9s info: ---> wait() | |
+9s info: ---> click() |
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
2018/10/02 16:22:13 | |
INFO | |
node started at 2018-10-02 20:22:13 +0000 | |
2018/10/02 16:22:13 | |
INFO | |
node received start message for flood-chrome 9lUR | |
2018/10/02 16:22:13 | |
INFO | |
node completed in: 64.027421 ms | |
2018/10/02 16:22:15 |
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 { step, TestSettings, TestData, Until, By, Browser, MouseButtons, Device, ENV } from '@flood/element' | |
import * as assert from 'assert' | |
export const settings: TestSettings = { | |
userAgent: 'flood-chrome-test', | |
clearCache: true, | |
clearCookies: true, | |
loopCount: Infinity, | |
duration: -1, | |
actionDelay: 0.5, |
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
# Check we have the jq binary to make parsing JSON responses a bit easier | |
command -v jq >/dev/null 2>&1 || \ | |
{ echo >&2 "Please install http://stedolan.github.io/jq/download/ Aborting."; exit 1; } | |
# Look for an existing grid | |
grid_uuid=$(curl --silent --user $FLOOD_API_TOKEN: https://api.flood.io/grids \ | |
| jq 'if ._embedded.grids[] > 0 then ._embedded.grids[0].uuid else empty end') | |
if [[ $grid_uuid == '' ]]; 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 | |
ENV=$1 | |
ENVID=$2 | |
REGION=$3 | |
while true; do | |
CURRENT_SECOND=$(date -d now -u "+%s") | |
START=$(expr $CURRENT_SECOND % 5) |
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
# Unless explicitly stated otherwise all files in this repository are licensed | |
# under the Apache License Version 2.0. | |
# This product includes software developed at Datadog (https://www.datadoghq.com/). | |
# Copyright 2017 Datadog, Inc. | |
from __future__ import print_function | |
import base64 | |
import json | |
import urllib |
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
# ALB logs start with http(s) or h2 and have the arn appended to the end of the log | |
alb.http %{notSpace} %{_date_access} %{_elb_name} (?:%{_client_ip}:%{_client_port}|-) (?:%{_destination_ip}:%{_destination_port}|-) %{_request_processing_time} %{_backend_processing_time} %{_reponse_processing_time} (?:%{_status_code}|-) (?:%{_backend_status_code}|-) %{_bytes_read} %{_bytes_written} "(?>%{_method} |- )%{_url}(?> %{_version}| - )" "%{_user_agent}" %{_ssl_cipher} %{_ssl_protocol}.* | |
elb.http %{_date_access} %{_elb_name} (?:%{_client_ip}:%{_client_port}|-) (?:%{_destination_ip}:%{_destination_port}|-) %{_request_processing_time} %{_backend_processing_time} %{_reponse_processing_time} (?:%{_status_code}|-) (?:%{_backend_status_code}|-) %{_bytes_read} %{_bytes_written} "(?>%{_method} |- )%{_url}(?> %{_version}| - )" "%{_user_agent}" %{_ssl_cipher} %{_ssl_protocol} | |
#Sample | |
#https 2018-01-05T18:15:01.316365Z app/prod-varnish-cache-flograppling/07574303dea2a57e 100.43.85.162:49660 10.1.222.61:6081 0.001 0.917 0.000 2 |
NewerOlder