Skip to content

Add duo chat test with response validation and streaming

Ramya Authappan requested to merge duo-chat-ws-test into main

In this test:

  • We send a graphql request. - It is an async request.
  • The response has a requestId.
  • Use the requestId and listen to the webscoket
  • Get the actual aiResponse from the websocket

The test will mostly mimic the flow of requests of what a user might expect to see happen when they open GitLab Duo Chat, and subsequently submit a question and await a response.

Steps to run: ACCESS_TOKEN=$GITLAB_QA_ACCESS_TOKEN ./bin/run-k6 --options 60s_1rps.json --environment gdk.json --tests ./tests/quarantined/api_v4_duo_chat_with_response.js

Sample Recording of UI flow

Screen_Recording_2024-06-25_at_14.22.13

Closes #591 (closed)

Edited by John McDonnell

Merge request reports