Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Create a Function to Validate Radio button
posted

Hi,

I'm Using WPF for QTP Automation. My query is that I have to Create a Function to Validate Radio button.

I Will pass Radio button Index and Text Properties. Based on the input Index and Text Properties My function should select the appropriate Radio button.

Please help

Ex: Funciton ValidateRadioButton(ByVal Index,ByVal Text)

{.........

...............}

Call ValidateRadioButton(1,RadioButtonBus)

  • 29105
    Offline posted

    Hello Thiru,

    Thank you for contacting Infragistics. Are you using a specific Infragistics component for WPF; because we do not include a stand-alone Radio Button component. Please clarify whether or not you are using any components directly from  our WPF toolset.

    In QTP's VBscript there are two types of branching to conditionally check for Checked and Name properties.

    1. If..Then Statements
    2. Select Case Statements

    I strongly recommend reviewing the following how-to-site online for more assistance:
    eg. http://www.softwaretestingmaterial.com/conditional-statements-vbscript/

    Let me know if you have any questions.