Skip to content
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

Integration test generated by RoostGPT #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harishagrawal
Copy link
Contributor

Please pull these awesome changes in!
Test Name - credential-integration-artillery
AI Type   - Azure Open AI
AI Model  - roost-gpt4-32k
Test Type - Integration test
Use Type  - ui
Test Framework - rest-assured

Access Logs At - https://dev.roost.ai/roostgpt/logs?trigger_id=05b3d32a-5434-4859-84b0-07f50d04ab77

Using AI Model roost-gpt4-32k
public void testGrantAuthorization() {

//@TODO Read header,payload and response for /accounts
String header = "" ; // replace with data read from file
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the logic to read data from file is missing

METHOD^|^URL^|^REQ_HEADERS^|^REQ_BODY^|^RESPONSE_CODE^|^RESPONSE_BODY

POST^|^http://localhost:8080/accounts^|^{"commit-hash": "abc123"}^|^{"email": "[email protected]"}^|^201^|^{"description": "successful operation", "headers": {"api-version": "1.0.0", "commit-hash": "928d28d"}}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while reading the file, logic should be to skip empty lines

import static org.hamcrest.Matchers.*;
import org.junit.BeforeClass;

public class scenario803fe763f5Test {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this class name match with the file name?
At present, it is not

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected className

Suggested change
public class scenario803fe763f5Test {
public class scenario_803fe763f5_Test {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants