Send results from PHPUNIT to testlink

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
alvesker
TestLink user
Posts: 4
Joined: Tue Feb 06, 2018 7:19 pm

Send results from PHPUNIT to testlink

Post by alvesker »

Hello,

I am using php-selenium to test UI with PHPUNIT. Is there a ways to send results from php to Testlink like for java?

I.e. in java you do smth like

import testlink.api.java.client.TestLinkAPIClient;
import testlink.api.java.client.TestLinkAPIException;
import testlink.api.java.client.TestLinkAPIResults;

then

private static void updateTestLinkResult(String testCase, String exception, String result) throws TestLinkAPIException{
TestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(DEV_KEY, SERVER_URL);
testlinkAPIClient.reportTestCaseResult(PROJECT_NAME, PLAN_NAME, testCase, BUILD_NAME, exception, result);
}

Can I do such from php?
alvesker
TestLink user
Posts: 4
Joined: Tue Feb 06, 2018 7:19 pm

Re: Send results from PHPUNIT to testlink

Post by alvesker »

Nevermind, found it. With a bit of digging)
Post Reply