Forum Discussion

ManiSaxena11's avatar
ManiSaxena11
Occasional Contributor
9 years ago

Need to run Project(i.e mds) file from VBS script from outside Testcomplete. Please suggest the sol?

Hi, My Task is to create a driver scrip where we can execute test cases from a Vbs script file from outside of TC. Right now I am using code mentioned below. Through this I am able to open Project suite but cant run Project under it. Please suggest what can be done. This Code gives error when I call "IntegrationObject.RunProject" . Line of code highlighted
***************************************************************************


 

MsgBox "Start"
' Creates the application object
Set TestCompleteApp = CreateObject("TestComplete.TestCompleteApplication")
TestCompleteApp.Visible = True
' Obtains the integration object
Set IntegrationObject = TestCompleteApp.Integration
' Opens the project
IntegrationObject.OpenProjectSuite "C:\Users\saxmani\Documents\TestComplete 10 Projects\EnComa\MyAPP_RegressionSuite.pjs"
' Checks whether the project was opened
If Not IntegrationObject.IsProjectSuiteOpened Then
MsgBox "The project suite was not opened."
Else
MsgBox "Project opened"
IntegrationObject.RunProject "C:\Users\saxmani\Documents\TestComplete 10 Projects\EnComa\EnCoMa_VBSuite\Poject_VBSuite.mds"
End If
MsgBox "End"
p>

5 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    Try to change your code:

     

    IntegrationObject.RunProject "Poject_VBSuite"

     

    • ManiSaxena11's avatar
      ManiSaxena11
      Occasional Contributor

      Tried with the suggested solution but still it doesn't work.


      baxatob wrote:

      Hi,

       

      Try to change your code:

       

      IntegrationObject.RunProject "Poject_VBSuite"

       



      baxatob wrote:

      Hi,

       

      Try to change your code:

       

      IntegrationObject.RunProject "Poject_VBSuite"

       




      • baxatob's avatar
        baxatob
        Community Hero

        What error have you received?

         

        Also be sure that you have no typo in the project name: 

         

        Poject_VBSuite ' <--