Hi,
I have still problems getting it to work running HeartBeat 7.10. According to your documentation I should use type browser
:
heartbeat.monitors:
- type: browser
id: my-monitor
name: My Monitor
schedule: "@every 1m"
script: |-
step("load homepage", async () => {
await page.goto('https://www.elastic.co');
});
step("hover over products menu", async () => {
await page.hover('css=[data-nav-item=products]');
});
If I try this (in a monitors.d file) I get the following error:
- type: browser
id: app-ui-test
name: app-ui-test
schedule: "@every 1m"
script: |-
step("Open application", async () => {
await page.goto('https://myhost:8443/myApp/');
Error creating runner from config: monitor type browser does not exist, valid types are [http synthetics/http icmp synthetics/icmp tcp synthetics/tcp]
Should I use synthetics/http
instead or do I have to download a specific heartbeat version?
If I try to run my tests as a test suite like this nothing happens at all(not even a log entry):
heartbeat.synthetic_suites:
- name: myApp
path: "/logserver/applications/heartbeat-7.10.0-linux-x86_64/monitors.d/app-ui-tests/"
schedule: "@every 1m"
The directory structure of the app-ui-tests directory looks like this:
app-ui-tests
- node_modules
- ...
- package.json
- package-lock.json
- myapp.journey.ts
When running standalone using npx @elastic/synthetics .
it works on my windows machine but not on our Linux system because of missing certificates. I found this solution in the playwright github but couldn't find a way to configure this in the elastic synthetics - can you give me a hint?
Best regards
Wolfram