This is a migrated thread and some comments may be shown as answers.

How Run telerik from Vb windows Forms.

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
aldo basantes
Top achievements
Rank 1
aldo basantes asked on 13 Jun 2016, 06:52 PM

Hello.

How run telerik test from vb Code, need execute the test from win form.

The telerik export the code, but needs one object TestContext and this object in winform not accesible.

One option is modify the code generated, but exist in telerik the TestContext object and pass to <Testmethod()> ?

 

 

  <TestMethod()>
        Public Sub TEST_fecha_javascrip_1()
            'Launch an instance of the browser
            Dim mySettings As Settings = New Settings()
            mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer
            Dim Manager As Manager = New Manager(mySettings)
            Manager.Start()
            Manager.LaunchNewBrowser()
            Manager.ActiveBrowser.NavigateTo("https://XXXXX/XXXX/login/frmlogin.aspx", True)

 

            'Coded Step From Test
            '            

            'Click 'OverridelinkLink'
            Pages.ErrorDeCertificado.OverridelinkLink.Click(False)

            'Click 'Button1Submit'
            Pages.ESigefIngresoAlSistema.Button1Submit.Click(False)

            'Enter text 'XXXX' in 'UserNameText'
            Manager.ActiveBrowser.Actions.SetText(Pages.ESigefIngresoAlSistema.UserNameText, "xxxxx")

....................

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 16 Jun 2016, 02:24 PM
Hi Aldo,

Thank you for contacting us.

I am not sure if I understand you correctly. Do you want do execute a test with VB code?

If so here is the code:

Me.ExecuteTest("testName.tstest")

Please do let me know if I am missing something.

Thank you!

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
aldo basantes
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or