Forum Discussion

nandini9's avatar
nandini9
Occasional Contributor
7 years ago

How to work with testrail tool with testcomplete in vbscript

I integrated testrail tool with testcomplete using the below code:

 

Function Test_rail

Dim o
Set o = CreateObject("MSXML2.XMLHTTP")
o.open "GET","https://nandini9.testrail.net/index.php?/auth/login",False ,"Username","Password"
o.setRequestHeader "Content-Type", "application/json"
o.send
log.message(o.status)
End Function

 

This got integrated.

 

Now, i want to add a testcase to testrail tool from testcomplete in vbscript.How can we do that?

Note:Not only adding a testcase,I actually wanted to work on the testrail tool using testcomplete

 

Thanks and regards,

Nandini

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi Nandini,

     

    > This got integrated.

    No, it is not.

    What you got is you provided valid authorization info to the server and got the content of the index.php page. Note, that you got it as a plain html source that, most probably, requires additional processing before it can be displayed in a browser. Also note, that your code just executed basic web request and obtained response. This means that neither web browser will be opened nor obtained page html source will be rendered somewhere.

     

    Follow https://community.smartbear.com/t5/TestComplete-General-Discussions/Integration-TestRail-and-TestComplete/td-p/120998 thread and the one referenced in it to get a better understanding of what and how can be done to get/set data in TestRail using its API.