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

How to add test run into test plan? #65

Open
Zeloslaw opened this issue May 10, 2021 · 1 comment
Open

How to add test run into test plan? #65

Zeloslaw opened this issue May 10, 2021 · 1 comment

Comments

@Zeloslaw
Copy link

Zeloslaw commented May 10, 2021

Hello,
I have a problem,
I don't know how to add test run into test plan.
I tried the solution found on the internet:
`TestRail testRail = TestRail.builder(ConfigProperties.getTestRailUrl(), ConfigProperties.getTestRailUser(),
ConfigProperties.getTestRailPassword()).build();

Plan.Entry.Run run = new Plan.Entry.Run();

run.setName("AQA test");

Plan.Entry entry = new Plan.Entry().setRuns(Arrays.asList(run));

entry.setSuiteId(566469);

Plan.Entry plan = testRail.plans().addEntry(16, entry).execute();`

Unfortunately, I get an error message:
com.codepine.api.testrail.TestRailException: 403 - You are not allowed to edit test plans (insufficient permissions). at com.codepine.api.testrail.TestRailException$Builder.build(TestRailException.java:57) at com.codepine.api.testrail.Request.execute(Request.java:142) at testrail.TestPlanLauncher.main(TestPlanLauncher.java:19) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:254) at java.lang.Thread.run(Thread.java:748)

@Zeloslaw
Copy link
Author

it was my mistake, i used closed test plan id

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

1 participant