AnsweredAssumed Answered

TestexecSL ActiveX exception(RPC server is unavailable )

Question asked by hemant001 on Dec 20, 2015
Latest reply on Dec 23, 2015 by Cynthia
Hi,

I am creating a windows form application using vb .net.
form app has 3 buttons to execute testcases.

In testexecsl i have created 2 testplan (.tpa files), each with one test only. And the third testplan with 2 tests (tests of testplan 1&2).

TestPlan1.tpa ( Test1)
TestPlan2.tpa ( Test2)
TestPlan3.tpa ( Test1 & Test2)

Now using testexecsl activeX control i am loading & running the above testplan's on form application button click.

'On Button1_click
Task1()

'On Button2_click
Task2()

'On Button3_click
Task1()
'Thread.sleep(2000)
Task2()



'Below are the vb functions

Public Sub Task1()

        txsl1.LoadTestplan("C:\TestPlans\Testplan1.tpa")

       txsl1.Testplan.Run()

  End Sub



  Public Sub Task2()

       txsl1.LoadTestplan("C:\TestPlans\Testplan2.tpa")

       txsl1.Testplan.Run()

  End Sub


Public Sub Task3()

       txsl1.LoadTestplan("C:\TestPlans\Testplan3.tpa")

       txsl1.Testplan.Run()

End Sub



The above code works fine for button 1 and 2 , but for button 3 i am getting exception. below is the description
The RPC server is unavailable .[exception from HRESULT: 0x800706BA).

I tried by enabling the RPC locator services from the service.msi , but no success.

1. Is it allowed ,Loading and running multiple testplan?
2. I cannot create a single testplan(.tpa) with all the tests since i have to perform either one test  or both .and i don't know how to select a single tests within a testplan(.tpa). i checked the testexecsl API's .

pl provide solution.



Best Regards,
Hemant.  

Outcomes