This question is locked. New answers and comments are not allowed.
Hi,
I am performing a test which logs in to a site and extracts (or ideally will compare) certain field values to a log file/excel.
I have got it working for a basic test (one extracted value):
The problem lies with the amount of values I will be extracting. Is there no way to use the DataBindVariableName, rather than having to GetExtractedValue from each of them? I won't be changing any values, just logging or comparing them.
For example:
I am performing a test which logs in to a site and extracts (or ideally will compare) certain field values to a log file/excel.
I have got it working for a basic test (one extracted value):
System.IO.StreamWriter file =
new
System.IO.StreamWriter(
"C:/mylog.txt"
);
String a = Convert.ToString(GetExtractedValue(
"fieldVal"
));//This could go on forever...
{
//file.WriteLine(ToString(fieldVal));
file.WriteLine(
"Test log entry Values Returned: "
+ a +
" "
); //...As would this
file.NewLine();
file.Close();
}
The problem lies with the amount of values I will be extracting. Is there no way to use the DataBindVariableName, rather than having to GetExtractedValue from each of them? I won't be changing any values, just logging or comparing them.
For example:
System.IO.StreamWriter file =
new
System.IO.StreamWriter(
"C:/mylog.txt"
);
//String a = Convert.ToString(GetExtractedValue("fieldVal"));//Now redundant
{
//file.WriteLine(ToString(fieldVal));
file.WriteLine(
"Test log entry Values Returned: "
+ fieldVal +
" "
);
//...This would likely be some sort of Loop
file.NewLine();
file.Close();
}