File: README.md

package info (click to toggle)
python-wslink 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,396 kB
  • sloc: python: 2,849; javascript: 1,176; cpp: 29; makefile: 3
file content (56 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## Introduction

This is an interactive test that we wish to automate at some point.
But this allow to make sure the set of features we aim to support continue to work
without too much burden.

## Running the test

```
export WSLINK_ROOT=$PWD/../..

cd $WSLINK_ROOT
python3 -m venv py-env
source ./py-env/bin/activate
pip install -r ./python

cd $WSLINK_ROOT/js
npm i
npm run test
```

Open `http://localhost:8080/index.html`

Then run the following steps while having the dev console open:
1. Connect
   1. WS open
2. Send Add
   1. result 15
3. Send Mult
   1. result 120
4. Send Image
   1. result [object Blob]
   2. The GreenBlue Kitware logo should be visible in the page
5. Test Nesting
   1. In the debug console you should see `Nesting: { bytesList: [Blob, Blob], image: { blob: Blob } }
6. Sub/Unsub
   1. result [object Object]
   2. You should see the picture toggle between GreenBlue / ~RedPurple
7. Sub/Unsub
   1. result [object Object]
   2. The picture update should stop
8. Mistake
   1. error: -32601, "Unregistered method called", myprotocol.mistake.TYPO
9. Test NaN
   1. result Infinity,NaN,-Infinity
10. Disconnect
11. Connect
    1.  Redo 2-9
12. Server Quit
    1.  Make sure the console running the server does not have any error

## Running via the launcher

```
python -m wslink.launcher ./launcher.config
```