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

Exporting to TestRail doesn't work #5

Open
j0rdanit0 opened this issue Jan 20, 2022 · 2 comments
Open

Exporting to TestRail doesn't work #5

j0rdanit0 opened this issue Jan 20, 2022 · 2 comments

Comments

@j0rdanit0
Copy link

Setup
I've installed version 1.6.2 of the IntelliJ plugin and followed this guide: https://medium.com/@legionivo/an-easy-way-to-store-test-cases-as-a-code-5ccf3a80ee09

After providing the TestRail URL, projectId, suiteId, username, and password in the plugin settings, I hit the "Test" button and it successfully populates my account name in the Status box.

I create a minimal test like this:

@DisplayName( "Jordan Test" )
@Feature( "jordan/test" )
@Test
public void jordanTest()
{

}

I type Alt+Insert while the cursor is on the test name and choose either "Export To TestRail" or "Export Only Test Name to TestRail".

Expected
The "Export To TestRail" and "Export Only Test Name to TestRail" options should create a test case located in TestRail at jordan/test called Jordan Test and a corresponding @TmsLink annotation should be added to my JUnit test.

Acutal
The "Export To TestRail" and "Export Only Test Name to TestRail" options produce the following error message:

2:14 PM	Export to TestRail: Exception in [null]. Test case export failed

In TestRail, a single folder called jordan/test (not two folders) is created, but it is empty.

No @TmsLink annotation is added to my JUnit test (since the TestRail test case was not successfully created.)

I wonder if the TestRail API has changed? The recorded GIF in the guide obviously shows this was once working. Thank you for your help!

@Legionivo
Copy link
Owner

Hello @j0rdanit0. Please share your Testrail version, I'll check if plugin works with it. The plugin was developed several years ago, I don’t work for that company for a long time and don’t use Testrail, I only sometimes fix bugs from users.

@j0rdanit0
Copy link
Author

Thank you @Legionivo - TestRail v7.0.1.1013

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

No branches or pull requests

2 participants