| Java | .Net |
|---|---|
| String getRole() | string GetRole() |
下面的 Java 样本会将测试对象的图标更改为滑块图标:
import com.rational.test.ft.domain.*;
public class someProxy extends baseProxy
{
.
.
public String getRole()
{
return TestObjectRole.ROLE_SLIDER;
}
}
下面的 .Net 样本会将测试对象的图标更改为滑块图标:
using Rational.Test.Ft.Domain;
public class AnyProxy:BaseProxy
{
.
.
public override string GetRole()
{
return TestObjectRole.ROLE_SLIDER;
}
}