Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datatable.value("result","DTS")=environment("ts_result")
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi below is my code which does not work on perticuler step where it works for all previous steps, please help with some resolution.
Scenario:
in a test case i have around 23 Steps for 1st 17 step this code works fine.when it comes to 18th step results are not updating in datatable.
Code:
ex:
Code:
strt_range=168
end_range=190
For k=strt_range to end_range
                            datatable.GetSheet("DTS").SetCurrentRow(K)
    environment("ts_result") = "Pass"
             environment("ts_err") = "Pass"
If datatable.Value("TCID","DTC") = datatable.Value("TSID","DTS") Then
       Keyword_Executor datatable.Value("Keyword","DTS")
     datatable.Value("Result","DTS") = environment("ts_result")
    'msgbox environment("ts_result")
    datatable.Value("Error","DTS") = environment("ts_err")

and it does not read remaining columns
implemented Keyword Driven Testing.
any help will be highly appreciated thanks a ton in advance.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
U Can try like this
Code:
datatable.Value("Result","DTS") = environment.Value("ts_result")
Arul.D
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,273 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,937 11-30-2017, 02:21 AM
Last Post: supputuri
  environment variable path for qc automation2012 0 2,866 01-18-2015, 08:18 AM
Last Post: automation2012
  Select does not work together with Environment.Value qtped 7 4,055 02-14-2014, 12:46 PM
Last Post: supputuri
  Array as an environment variable..... rachna_nags 7 13,329 11-07-2013, 08:25 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 1 Guest(s)