Tag: yaml
-
Artillery Load Testing: How to Capture, Store, Log ‘requestId’ from Received Response and Pass it in Another Request?
0 When executing an Artillery test via the Windows command line, I observe the following response: 2023-12-12T13:52:17.968Z https:response "{"data":{"postApiV1Memo":{"code":200,"data":{"requestId":"d2966c0e-c91f-46b7-964f-1635ee0bde8b-323032335134"},"message":"Success"}}}" ok statusCode 200 In my YML configuration file, I’ve implemented code to capture and log specific fields, but unfortunately, I am unable to see the captured fields and logs (Also I am not able to Pass…
-
Artillery Performance Testing for Graph ql endpoints in yml file (not able to see debug log or what went wrong after execution)
0 I am using artillery node JS based tool for performance testing with yml based scenario. I have installed all the plugin library I am able to run artillery test But I am not able to see logs for what is wrong in my graph ql request and what is response. I tried to set…
-
Tried to use the environment variable in graphql codegen file
0 I tried to use the environment variable in the codegen.yml. I decided to generate the codegen.yml file by using the handlebars. yarn add handlebars codegen-template.yml overwrite: true generates: ./src/generated/graphql.tsx: schema: "{{REACT_APP_GRAPHQL_ENDPOINT}}" documents: src/**/*.graphql plugins: – typescript – typescript-operations – typescript-react-apollo package.json "scripts": { "generate-yaml": "npx handlebars -c .env -i codegen-template.yml -o codegen.yml" } and…
-
How do you create a template with replaceable variables for JS/React?
0 Context: I want to create a GraphQL query template with different variables that I can replace with key/values from another dictionary I want to give JS/React this template and dictionary and be able to replace the variables in the template with the corresponding values in the dictionary How would you recommend I do this?…