The task is to transfer the value from one test to another. Trying to do this with ITestContext:
public class One { int waterfallId; @Test() public void testOne(ITestContext ctx) { /*код теста, инициализируется переменная waterfallId*/ ctx.setAttribute("waterfallId", waterfallId); } @Test() public void testTwo(ITestContext ctx) { ctx.getAttribute("waterfallId"); //возвращает null } } What's wrong? What are some other solutions?