I have test cases that must be executed once for each supported culture. I am building the test items for the project, and would like to call the same function multiple times with different cultures. Is there a way to specify a parameter in the test list? The picker puts an icon "()" next to functions that accept parameters, but there doesn't seem to be a place to specify the parameter values.
It is impossible to specify parameters for a Test Item. You can pass arguments to functions only from scripts.
I have added your request as suggestion to our DB.
To solve your problem, I recommend that you create a function without parameters that will be specified in the Test Item properties.
This function in its body will call the needed test routines with parameters.
Bobby Edgar Olagoo.com
Save on AutomatedQA Products
There is an interesting hack now available in more recent versions of TC. You can get at the TestItem.Name value for the current running test. You could store some sort of parameters in the name potentially.
Dan, I must say that is an absolutely wonderful solution. I already have the culture in the test item name, and extracting it is extremely simple. I just deleted five script modules filled with copy/paste code and replaced it with tiny bit of code in the OnStartTest method.
If you're ever in Houston, I owe you a frosty beverage of gratitude.
No problem. If you see Chris Picard on the boards, he gave me the idea.
I do have relatives in Houston, but I have to be careful with the frosty beverages. Last time I was there, I had one Margarita after three hours of sleep and lost a whole afternoon. It's a long story, but one my brother-in-law enjoys commenting on. [img]/images/graemlins/wink.gif[/img]