Micro Focus QTP (UFT) Forums
Parametrize and Concatenate Strings - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Parametrize and Concatenate Strings (/Thread-Parametrize-and-Concatenate-Strings)



Parametrize and Concatenate Strings - Aisha2015 - 08-12-2015

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"")


RE: VB scripting - Ankur - 08-13-2015

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.