Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare the property value of a checkpoint to a parameter in datasheet
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Note:I am new to QTP and there is no one here to help me out.

Scenario
--------

I have a frame in which there are 5 radio button options. Based on the plan(corresponds to an emp id) in the local sheet, I have to choose a corresponding radio button.

Below is what I am trying to do. But I doo how to code for that.

Code:
Dim Plan_Sep

Plan_Sep = Set Datatable("Plan_Sep_Data", dtLocalSheet)

If Plan_Sep property set = 'V' then select Plan 55
Else If Plan_Sep property set = 'S' then select Plan 72

and so on

Please help
VM
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Vivek,

Code would look like this.

Code:
Dim Plan_Sep
Plan_Sep = Datatable("Plan_Sep_Data", dtLocalSheet)
If  strcomp(Plan_Sep,"V",1) = 0 Then
     Browser(..).Page(..).Frame(..).WebRadioGroup(..).select "#0"
ElseIf strcomp(Plan_Sep,"S",1) = 0 Then
     Browser(..).Page(..).Frame(..).WebRadioGroup(..).select "#1"
so on....
End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare WebTable Elements saraiado 1 2,553 06-11-2015, 06:54 PM
Last Post: venkatesh9032
  Storing runtime value into datasheet priyaUFTlearner 4 3,416 04-10-2015, 10:08 PM
Last Post: priyaUFTlearner
  Error with QTP DataSheet Values. srach84 1 2,126 11-27-2014, 10:32 AM
Last Post: vinod123
  How to compare two binary values Naresh 0 2,339 09-09-2014, 05:06 PM
Last Post: Naresh
  Action Parameter passing problem Qtpuser1 1 2,833 04-18-2014, 06:23 AM
Last Post: kgovadav

Forum Jump:


Users browsing this thread: 2 Guest(s)