macheshmeh
2 years agoContributor
Parameter the routins and tests
I want to use a routin (method) in different tests, depend to the test it has to use the routin with required test data
I mean
if Test 1 use reusable method with Data1
if Test 2 use reusable method with Data2
if Test 3 use reusable method with Data3
if Test 4 use reusable method with Data4
how can i manage this in testComplete and with javaScript
Create a function with two parameters which accepts input (data) and output (test). Assuming Data1/2/3/4 is the input and Test1/2/3/4 is the output results (or visa-versa)