You need previously run this part “Deploy an openQA web UI container” https://asciinema.org/a/388812
The script to have the worker running is this:
$ chmod a+w data/testresults
In this section we are going to use only opensuse test suites, but if you want more add them following the example:
$ git clone git@github.com:os-autoinst/os-autoinst-distri-opensuse.git
$ ln -s os-autoinst-distri-opensuse opensuse
$ git clone https://github.com/os-autoinst/os-autoinst-needles-opensuse.git
$ mv os-autoinst-needles-opensuse/ opensuse/products/opensuse/needles
Create a key/secret pair on your webUI and replace the example ones to configure the client.conf
$ echo -e “[openqa_webui]\nkey = <key>\nsecret = <secret>” > data/conf/client.conf
Ensure that the variable volumes is set
$ volumes=”-v $(pwd)/data:/data”
Build the worker
$ docker build openQA/container/worker -t openqa_worker
Run the worker
$ docker run -d –network openQA $volumes –device=/dev/kvm –privileged –name openqa_worker openqa_worker
You can launch a test accessing to the web UI
$ docker exec -ti openqa_webui /usr/share/openqa/script/clone_job.pl –apikey 5AD3533BB586FD54 –apisecret AE0A2A27FD82D530 https://openqa.opensuse.org/tests/1620808
Share this recording
Link
Append ?t=30
to start the playback at 30s, ?t=3:20
to start the playback at 3m 20s.
Embed image link
Use snippets below to display a screenshot linking to this recording.
Useful in places where scripts are not allowed (e.g. in a project's README file).
HTML:
Markdown:
Embed the player
If you're embedding on your own page or on a site which permits script tags, you can use the full player widget:
Paste the above script tag where you want the player to be displayed on your page.
See embedding docs for additional options.
Download this recording
You can download this recording in asciicast v2 format, as a .cast file.
DownloadReplay in terminal
You can replay the downloaded recording in your terminal using the
asciinema play
command:
asciinema play 390320.cast
If you don't have asciinema CLI installed then see installation instructions.
Use with stand-alone player on your website
Download asciinema player from
the releases page
(you only need .js
and .css
file), then use it like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="asciinema-player.css" />
</head>
<body>
<div id="player"></div>
<script src="asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'/assets/390320.cast',
document.getElementById('player'),
{ cols: 211, rows: 53 }
);
</script>
</body>
</html>
See asciinema player quick-start guide for full usage instructions.
Generate GIF from this recording
While this site doesn't provide GIF conversion at the moment, you can still do it yourself with the help of asciinema GIF generator utility - agg.
Once you have it installed, generate a GIF with the following command:
agg https://asciinema.org/a/390320 demo.gif
Or, if you already downloaded the recording file:
agg demo.cast demo.gif
Check agg --help
for all available options. You can change font
family and size, select color theme, adjust speed and more.
See agg manual for full usage instructions.