Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
Write a robot framework test that test a REST API scheme of a user with name properties
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Write a robot framework test that test a REST API scheme of a user with name properties
- Assistant
Sure, here is a Robot Framework test that tests a REST API scheme of a user with name properties:
*** Settings *** Library requests *** Test Cases *** Test User Name Properties ${url} Create URI ${HOST} ${API_VERSION} /users ${headers} Create Dictionary Content-Type=application/json ${payload} Create Dictionary name=John Doe ${response} Get Request ${url} ${headers} ${payload} ${status_code} Get Response Status Code ${response} ${content} Get Response Content ${response} ${name} Get Dictionary Value ${content} name Should Be Equal As Strings ${name} John DoeThis test creates a GET request to the
/usersendpoint on the API, passing in a JSON payload with anameproperty. The test then checks the response status code and content, and asserts that thenameproperty in the response matches the value that was passed in.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)