How Run telerik from Vb windows Forms.

2 posts, 0 answers
  1. aldo basantes
    aldo basantes avatar
    1 posts
    Member since:
    Jan 2005

    Posted 13 Jun 2016 Link to this post


    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()> ?



            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.ActiveBrowser.NavigateTo("https://XXXXX/XXXX/login/frmlogin.aspx", True)


                'Coded Step From Test

                'Click 'OverridelinkLink'

                'Click 'Button1Submit'

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


  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 16 Jun 2016 Link to this post

    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:


    Please do let me know if I am missing something.

    Thank you!

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top