Micro Focus QTP (UFT) Forums
Data Table issue with radio buttons - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Data Table issue with radio buttons (/Thread-Data-Table-issue-with-radio-buttons)



Data Table issue with radio buttons - eggy0822 - 10-09-2008

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?


RE: Data Table issue with radio buttons - sandeep n - 10-10-2008

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