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's an example Robot Framework test that tests a REST API schema for a user with a "name" property:
*** Settings *** Documentation REST API schema test for user with name property Library RequestsLibrary *** Test Cases *** Test REST API Schema for User with Name Property [Documentation] Test that the REST API schema for a user with a "name" property is valid [Tags] API Given a valid user ID When I request the user information Then the response status code should be 200 And the response schema should contain a "name" property *** Keywords *** Given a valid user ID [Documentation] Sets up the test with a valid user ID Set Test Variable ${userId} 123 When I request the user information [Documentation] Sends a GET request to the REST API endpoint to retrieve user information ${response} Get Request https://api.example.com/users/${userId} Then the response status code should be 200 [Documentation] Asserts that the response status code is 200 Should Be Equal As Integers ${response.status_code} 200 And the response schema should contain a "name" property [Documentation] Asserts that the response schema contains a "name" property ${schema} Set Variable {"type": "object", "properties": {"name": {"type": "string"}}} Json Should Match Schema ${response.content} ${schema}
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)