Skip to content

Commit 7423873

Browse files
committed
Update README and similar
1 parent 841fea0 commit 7423873

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ Our modified version of the wptserve HTTP server implementation can be found in
1212
- Clone this repository: `git clone [email protected]:header-testing/header-testing.git`
1313
- Run the setup file: `cd header-testing/_hp`, `./setup.bash` (reopen all terminals or run `source ~/.bashrc` afterwards)
1414
- Configure DB settings in [config.json](_hp/tools/config.json); Make sure to create a database with the correct name
15-
- Setup the database: `cd _hp/tools && poetry run python models.py`
16-
- Setup certs: either remove `.demo` from the files in `_hp/tools/certs/` to use self-signed certs or add your own certs here
15+
- Setup the database: `cd _hp/hp/tools && poetry run python models.py`
16+
- Setup certs: either remove `.demo` from the files in `_hp/hp/tools/certs/` to use self-signed certs or add your own certs here
1717

1818
## Run Instructions
1919
- Always start the WPT server first (from the top-most folder): `poetry run -C _hp python wpt serve --config _hp/wpt-config.json`
20-
- Create the basic and parsing responses: Run `cd _hp/tools && poetry run python create_responses.py` (basic), run `cd analysis` and execute `response_header_generation.ipynb` to generate the parsing responses.
20+
- Create the basic and parsing responses: Run `cd _hp/hp/tools && poetry run python create_responses.py` (basic), run `cd analysis` and execute `response_header_generation.ipynb` to generate the parsing responses.
2121
- Manually check if the server and the tests are working: Visit http://sub.headers.websec.saarland:80/_hp/tests/framing.sub.html
2222
- Automatic testrunners:
23-
- `cd _hp/tools/crawler`
23+
- `cd _hp/hp/tools/crawler`
2424
- Android: `poetry run python android_intent.py` (Additional config required)
2525
- MacOS/Ubuntu: `poetry run python desktop_selenium.py` (For a quick test run: `poetry run python desktop_selenium.py --debug_browsers --resp_type debug --ignore_certs`)
2626
- iPadOS/iOS: `poetry run python desktop_selenium.py ----gen_page_runner --page_runner_json urls.json --max_urls_until_restart 10000"`, then visit the URLs in that file manually
2727
- Analysis:
28-
- Run `cd _hp/tools/analysis && poetry run jupyter-lab`
29-
- Open `_hp/tools/analysis/main_analysis_desktop_basic+parsing.ipynb` (Also contains the mobile analysis)
28+
- Run `cd _hp/hp/tools/analysis && poetry run jupyter-lab`
29+
- Open `_hp/hp/tools/analysis/main_analysis_desktop_basic+parsing.ipynb` (Also contains the mobile analysis)
3030

3131
## Inventory
3232
- `_hp/`: All test and analysis code for the paper:
@@ -36,7 +36,7 @@ Our modified version of the wptserve HTTP server implementation can be found in
3636
- `testharness.sub.js`: Modified testharness.js to store the recorded output additonally to the test status
3737
- `server/`: Custom server endpoints to save data in our database and serve the correct responses from the DB
3838
- `tests/`: The template pages containing the test functions for the 12 tested features
39-
- `tools/`: All other code
39+
- `hp/tools/`: All other code
4040
- `analysis/`: Analysis code (.ipynb files) + utils
4141
- `certs/`: Put your certs here to enable testing of HTTPS
4242
- `crawler/`: Intent (Android), Selenium (Mac + Ubuntu), and Browser Page Runner (iOS) test runners + utils

_hp/hp/tools/analysis/main_analysis_desktop_basic+parsing-new_chrome_data.ipynb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"cell_type": "code",
45-
"execution_count": 4,
45+
"execution_count": 11,
4646
"id": "a5639063-07f2-4283-ba32-098aa5b57671",
4747
"metadata": {},
4848
"outputs": [
@@ -74,7 +74,7 @@
7474
},
7575
{
7676
"cell_type": "code",
77-
"execution_count": 5,
77+
"execution_count": 12,
7878
"id": "d2e1f6ac-ccd6-4115-a9a1-83b245225bac",
7979
"metadata": {},
8080
"outputs": [],
@@ -91,7 +91,7 @@
9191
},
9292
{
9393
"cell_type": "code",
94-
"execution_count": 6,
94+
"execution_count": 13,
9595
"id": "e2646a25-3184-459f-854b-0a3c5c2378ee",
9696
"metadata": {},
9797
"outputs": [
@@ -122,7 +122,7 @@
122122
},
123123
{
124124
"cell_type": "code",
125-
"execution_count": 7,
125+
"execution_count": 14,
126126
"id": "589725d1-b403-4c0c-9fb1-219560b382c3",
127127
"metadata": {},
128128
"outputs": [],
@@ -141,7 +141,7 @@
141141
},
142142
{
143143
"cell_type": "code",
144-
"execution_count": 8,
144+
"execution_count": 15,
145145
"id": "16c48765-0460-427a-b2cf-7e084bbd4788",
146146
"metadata": {},
147147
"outputs": [],
@@ -152,7 +152,7 @@
152152
},
153153
{
154154
"cell_type": "code",
155-
"execution_count": 9,
155+
"execution_count": 16,
156156
"id": "c921e555-b71b-41e6-89c9-73d6df846c37",
157157
"metadata": {},
158158
"outputs": [
@@ -195,18 +195,18 @@
195195
" <td>128</td>\n",
196196
" <td>Ubuntu 22.04</td>\n",
197197
" <td>headless-new</td>\n",
198-
" <td>3152</td>\n",
198+
" <td>4728</td>\n",
199199
" </tr>\n",
200200
" </tbody>\n",
201201
"</table>\n",
202202
"</div>"
203203
],
204204
"text/plain": [
205205
" automation_mode browser_id name version os headless_mode id\n",
206-
"0 selenium 3 chrome 128 Ubuntu 22.04 headless-new 3152"
206+
"0 selenium 3 chrome 128 Ubuntu 22.04 headless-new 4728"
207207
]
208208
},
209-
"execution_count": 9,
209+
"execution_count": 16,
210210
"metadata": {},
211211
"output_type": "execute_result"
212212
}
@@ -219,17 +219,17 @@
219219
},
220220
{
221221
"cell_type": "code",
222-
"execution_count": 10,
222+
"execution_count": 9,
223223
"id": "9038e1fe-d3f5-4c48-8b36-5a85b8495968",
224224
"metadata": {},
225225
"outputs": [
226226
{
227227
"data": {
228228
"text/plain": [
229-
"3152"
229+
"4728"
230230
]
231231
},
232-
"execution_count": 10,
232+
"execution_count": 9,
233233
"metadata": {},
234234
"output_type": "execute_result"
235235
}
@@ -240,7 +240,7 @@
240240
},
241241
{
242242
"cell_type": "code",
243-
"execution_count": 11,
243+
"execution_count": 17,
244244
"id": "cd18c0fe-fa04-4348-af05-34755e07b4df",
245245
"metadata": {},
246246
"outputs": [
@@ -277,7 +277,7 @@
277277
" <tbody>\n",
278278
" <tr>\n",
279279
" <th>chrome Ubuntu 22.04 128 selenium headless-new</th>\n",
280-
" <td>3152</td>\n",
280+
" <td>4728</td>\n",
281281
" <td>54</td>\n",
282282
" </tr>\n",
283283
" </tbody>\n",
@@ -287,10 +287,10 @@
287287
"text/plain": [
288288
" count nunique\n",
289289
"browser \n",
290-
"chrome Ubuntu 22.04 128 selenium headless-new 3152 54"
290+
"chrome Ubuntu 22.04 128 selenium headless-new 4728 54"
291291
]
292292
},
293-
"execution_count": 11,
293+
"execution_count": 17,
294294
"metadata": {},
295295
"output_type": "execute_result"
296296
}

_hp/hp/tools/crawler/desktop_selenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def unraisable_hook(unraisable):
295295
config = [
296296
# Released 2024-01-22 (17.3 (19617.2.4.11.8))
297297
# ("safari", "17.3.1", None, None, get_or_create_browser("safari", "17.3.1", "macOS 14.3.1", "real", "selenium", "")),
298-
("safari", "17.5", None, None, get_or_create_browser("safari", "17.5", "macOS 14.5", "real", "selenium", "")),
298+
("safari", "17.5", None, [], get_or_create_browser("safari", "17.5", "macOS 14.5", "real", "selenium", "")),
299299

300300
# Brave without updates on MacOS
301301
# Download .dmg from https://github.com/brave/brave-browser/releases and install

0 commit comments

Comments
 (0)