Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Table issue with radio buttons
#1
Not Solved
I am very new to QTP and I am trying to automate a script to run negative scenarios for a trading site. I am using a data table, which works fine, except when I want to simulate a scenario where the user forgets to select a radio button. When I leave the field blank in the data table, I get a run time error. Is there a way to signal QTP to skip the field when the data table field is blank? Or perhaps is there a value I can enter in the data table to skip the field for that particular iteration?
Reply
#2
Not Solved
m not sure what r u trying for i think give a try for this
if u r sure of the columnname in datatable which ur going to leave blank then say column as "radio"
Code:
i=1
do until i=some condition
        datatable.setcurrentrow(i)

         dim a
          a=datatable("radio",dtglobalsheet)
             if a<>"" then
                    here u write all the scripts what ever u want to do
             end if    
i=i+1
loop
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  data table use uft_usr 1 2,286 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 12,221 08-27-2015, 10:18 AM
Last Post: supputuri
  Retrieving data from web table nsuresh316 1 3,173 03-03-2014, 08:29 AM
Last Post: basanth27
  How to get data from data table in Ascending order dipashri 1 3,791 01-28-2014, 09:54 PM
Last Post: jacosta
  Data Table Query Suma Parimal 4 4,847 01-21-2014, 12:50 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)