Skip to content

Instantly share code, notes, and snippets.

View syossan27's full-sized avatar
💭
🤔

syossan27 syossan27

💭
🤔
View GitHub Profile
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
import { Trend, Gauge, Counter, Rate } from 'k6/metrics'
const testTrend = new Trend('testTrend', true);
const testGauge = new Gauge('testGauge');
const testCounter = new Counter('testCounter');
const testRate = new Rate('testRate')
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
export const options = {
discardResponseBodies: true,
scenarios: {
test_scenario: {
// rate, timeUnitを実行するためのExecutor
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
export const options = {
discardResponseBodies: true,
scenarios: {
test_scenario: {
// rate, timeUnitを実行するためのExecutor
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
export const options = {
scenarios: {
test_scenario: {
// rate, timeUnitを実行するためのExecutor
executor: 'constant-arrival-rate',
// Creator: k6 Browser Recorder 0.6.2
import { sleep, group } from 'k6'
import http from 'k6/http'
export const options = {
vus: 10,
duration: '5m'
}
import http from 'k6/http';
import { sleep } from 'k6';
export default function () {
http.get('https://test.k6.io');
sleep(1);
}
cy.intercept({
url: '/g/collect*',
method: 'POST',
hostname: "analytics.google.com"
}).as('ga_req');
cy.visit([テストしたいページのURL]);
cy.wait('@ga_req', {timeout: 30000}).its('response.statusCode').should('equal', 204);
{
organization(login: "[オーガナイゼーション名]") {
projectV2(number: [プロジェクト番号]) {
id
}
}
}
{process.env.DEPLOY_ENV === "production" && (
<Script
id="rollbar"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
var _rollbarConfig = {
accessToken: "${process.env.ROLLBAR_CLIENT_ACCESS_TOKEN}",
captureUncaught: true,
captureUnhandledRejections: true,
build:
docker:
- image: circleci/node:14
steps:
- checkout
- setup_remote_docker:
version: 20.10.14
docker_layer_caching: true
- run:
name: google authentication