所以这是我目前的结构:
public class PassingVariables extends UiautomatorTestCase{
int variable1;
int variable2;
public void setUp() throws UiObjectNotFound{
///Set up
}
public void testSetVariable(){
variable1 = 6;
variable2 = 7;
System.out.printlin(variable1 +" " + variable2);
}
public void testReadVariable(){
System.out.println(variable1);
System.out.println(variable2);
}
我期望这会输出6
,,,,7
然后6
和7
。但它正在输出6
,7
然后0
和0
。