Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skip a cell while QTP is reading datatable
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi all,

I have a generic script who check value or statut field.
For example, I have 2 columns in my datatable :
In the Test 1 : I call check_generic_script and I check the 2 fields
In the Test 2 : I call check_generic_script and I check only 1 field
So I want kept the same generic script for the two tests : How I can ignore the second column? Is there a data to put into the datatable to ignore the reading?
Sorry for my poor English, I hope you understand me.
Thanks
Mikee
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
I can think of two ways off the head...

1) create a flag for each column. say having values Y and N. So if both columns are Y. Run both. If only 1) is Y run 1)

2) you can have the check for blank value in a cell..if a cell is blank than create a logic which takes your script to skip that part of the code while execution..

Hope this helps
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks for your answer !!
Mikee
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,209 09-28-2016, 09:16 PM
Last Post: supputuri
  Finding a cell Location on a datatable rhozeski 0 2,037 11-23-2014, 02:38 AM
Last Post: rhozeski
  Reading an amount from statement shipu 0 1,909 12-24-2013, 01:42 AM
Last Post: shipu
  Coloring cell of runtime datatable indranilgoswamimcb 3 10,977 08-03-2012, 03:51 PM
Last Post: SteveS
  reading a value for GIF image sujaravi123 1 2,498 03-29-2012, 07:47 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)