forked from expertisesolutions/tctautomated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PMIN_prop_set_min_val.template
24 lines (24 loc) · 1.04 KB
/
PMIN_prop_set_min_val.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Test]
[Category("P1")]
[Description("Calling Property Set Min Value ${func.name}$.")]
[Property("SPEC", "${suite.name}$.${cls.name}$.${func.name}$_set A")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PMIN")]
[Property("AUTHOR", "AutomaTest Boot, tct@automated")]
public void ${func.name}$_set_MIN_VALUE()
{
${def_params(parameters=func.setter_args)}$
${m_show(mshow=func.arg_set_init)}$#!
${m_show(mshow=func.set_init)}$#!
<!--(if func.pmin_init)-->
${m_show(mshow=func.pmin_init)}$#!
<!--(else)-->
<!--(for arg in filter(func.is_number, func.setter_keys))-->
arg_${arg.name}$ = ${suite.type_convert(arg.type)}$.MinValue;
<!--(end)-->
<!--(end)-->
/* CALLING PROPERTY */
${meth_target(func=func, cls=cls)}$.Set${func.format_name}$(${', '.join([suite.print_arg(p) for p in list(func.setter_keys) + list(func.setter_values)])}$);
${m_show(mshow=func.arg_get_shutdown)}$#!
${m_show(mshow=func.get_shutdown)}$#!
}