Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Wpf / Create a Function to Validate Radio button

Create a Function to Validate Radio button

New Discussion
Thiru
Thiru asked on Jun 19, 2017 10:11 PM

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)

Sign In to post a reply

Replies

  • 0
    Michael DiFilippo
    Michael DiFilippo answered on Jun 19, 2017 10:11 PM

    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.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Thiru
Favorites
0
Replies
1
Created On
Jun 19, 2017
Last Post
9 years, 2 months ago

Suggested Discussions

Created by

Created on

Jun 19, 2017 10:11 PM

Last activity on

Feb 19, 2026 2:28 PM