Micro Focus QTP (UFT) Forums

Full Version: Parametrize and Concatenate Strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you please help for the below scenario

I i have a webedit with HTML id as "FDOEEFPDBOMAACHH\.BasicData\.EANCategory"

the first part that is "FDOEEFPDBOMAACHH" is constant
the second part is "BasicDataView" is task
In that tab the third part "EANCategory" is there

I am maintaining one excel like below
Sno Task Tab Field
1 Basic data UOM/EAN EAN Category
1 Basic data UOM/EAN EAN Category

the script should take the task then field name and add in the runtime while running the code.

Like xxxxx.Webedit(htmlid:="FDOEEFPDBOMAACHH.\"take task fromexcel\. "take field from excel"")
You would need to pick the values from a data source (say datatable) , use concatenation operator to concatenate the complete string.

Are you facing some issue in the code? Write it down here and we will have a look.