If you are reading this, you probably tried to write code like this
test "testing session" do
build_conn()
|> put_session(:user_id, 234)
|> get("/")
...
endAnd got this exception:
| import http from "k6/http"; | |
| import ws from "k6/ws"; | |
| export const options = { | |
| // Key configurations for spike in this section | |
| stages: [ | |
| { duration: "2m", target: 100 }, // fast ramp-up to a high point | |
| // No plateau | |
| { duration: "1m", target: 0 }, // quick ramp-down to 0 users | |
| ], |
| const Hooks = { ViewportResizeHooks} | |
| const connectLiveSocket = () => { | |
| const csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute('content') | |
| const liveSocket = new LiveSocket('/my_app/live', Socket, { | |
| params: { | |
| _csrf_token: csrfToken, | |
| viewport: { | |
| width: window.innerWidth, | |
| height: window.innerHeight |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Python: loadbalancer test", | |
| "type": "python", | |
| "request": "launch", | |
| "module": "pytest", | |
| "args": [ | |
| "--no-cov" |
If you are reading this, you probably tried to write code like this
test "testing session" do
build_conn()
|> put_session(:user_id, 234)
|> get("/")
...
endAnd got this exception:
| import Html exposing (..) | |
| import Html.App as Html | |
| import Html.Attributes exposing (..) | |
| import Html.Events exposing (onInput, onClick) | |
| import String exposing (length) | |
| main = | |
| Html.beginnerProgram | |
| { model = { name = "", password = "", passwordAgain = "", validationResult = NotDone } |
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">