Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Automate Datatable column name and sheetname in function
#1
Hello,

I am new here. I am working on a script with function library. I have created following function. 

Code:
'Function to Validate Login Function fnChktext (Prop_Name,Prop_InnerText) Dim Chktext Set Chktext=Description.Create Chktext("name").value=Prop_Name Chktext("innertext").value=Prop_InnerText If MyBrowser.Link(Chktext).Exist(2) Then DataTable.Value("Results", "Global")="Test-Passed" Else DataTable.Value("Results", "Global")="Test-Failed" End If End Function


I want to reuse this function but I want user should enter ColumnName and Sheetname for DataTable to write values to DataTable. Instead of making it hard coded for column name and Sheetname. How Can I do this?
Reply
#2
You mean you want a test engineer's intervention while the script is running? So that a script is paused and (s)he can enter the value of column and sheet name?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass reference to datatable into function smallsteve 2 2,721 09-28-2017, 09:18 PM
Last Post: smallsteve
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 3,363 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  to count the number of used rows in a particular column sujaravi123 3 11,841 06-12-2013, 03:17 PM
Last Post: sujaravi123
  How to recognize table row and column siwani 4 5,911 04-05-2012, 05:06 PM
Last Post: verma.vik6
  Reading xls by column name anbarasu 2 3,764 04-05-2010, 12:26 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)