-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tests separately by using a custom command #384
Comments
@picolloo You can filter journeys based on tags and match. Find the docs here - https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-browser-options.html#monitor-browser-filter-journeys These would allow you to group journeys, Let us know if you need any help. |
I tried using this configuration but it appears no being passed to the default command: I also keep receiving this warning: My heartbeat.yml: heartbeat.monitors:
- type: browser
name: accounts
id: accounts-auth
schedule: "@every 1m"
filter_journeys:
match: "Sign in*"
source:
local:
path: "${SUITES_DIR}" The journey: journey('Sign in', options => {
const { page } = options
const signInPage = new SignInPage(page)
step('sign in', async () => {
await signInPage.navigate()
return signInPage.signIn()
})
step('select product', async () => signInPage.selectMarketingProduct())
}) |
Needs two changes for this feature to work.
It should also work with |
I've upgraded the heartbeat version to the 7.14 and gave the journey a name: But I keep receiving Locally I'm able to use match to run this journey only, but inside heartbeat it just does not work. |
Apologies, its available from Heartbeat 7.15 onwards. I provided the link to the current documentation which was the latest. Can you try and let us know. |
Thanks for your help in here @vigneshshanmugam. Using this Dockerfile I was able to make it work as I expected: FROM docker.elastic.co/beats/heartbeat:7.15.0
USER root
RUN mkdir $SUITES_DIR
RUN chown heartbeat:heartbeat $SUITES_DIR
USER heartbeat
WORKDIR $SUITES_DIR
COPY package.json .
COPY package-lock.json .
RUN npm i
COPY . . Even though I still receiving this message: Wish you the best, see ya. |
Which version of of Kibana are you using? We made some changes on how we store the screenshots data and that might be the cause. |
7.13 |
I see, The reason you are seeing the issue is because we have changed the logic around how the screenshots are stored and constructed on the synthetics and also on the UI side. You would need to move to same version 7.15 or 7.14 of Kibana. You can read the details here - #285 PS: Screenshots occupies a huge space so instead of a blob of data, we split them in to smaller chunks to help with caching documents on the Elasticsearch side and then reconstruct them on the UI. |
Alright @vigneshshanmugam, I'm going to do that and get back to you if I need something. Thanks for everything so far. |
Hi there,
I'm implementing synthetics tests here at my company and trying this tool.
I currently have about 10 tests grouped by context and they are all started by the default elastic-synthetics command.
What I'm looking for is a way of running they separately, possible by specifying the path in the command. But I haven't found any way of passing flags to the
docker.elastic.co/beats/heartbeat:7.13.0
image default command.Can you guys help me with this issue?
FYI I'm currently running all tests in the same pod since every file that has the
.journey
prefix is executed.If you need any extra information or files I'd be glad to share with you.
The text was updated successfully, but these errors were encountered: