Pergunta

I have following test suite structures in my mind:

  1. Test Suite 01, has one test case (TC01) in side.
  2. Test Suite 02, has one test case (TC02) in side.
  3. Variable file available and imported both Test suite as resource.
  4. Variable file has one List @{List}, with several values
  5. In TC01, I output the content of @{List}
  6. In TC02, I first Remove ${List} index 0, and set it as a new variable with same name: Remove From List ${List} 0, and then ${List}= Set Variable ${List}, Set Global Variable ${List}
  7. Then out put new ${List}

--> Everything works out correctly till then:

  1. After TC02 finished, I made RF perform TC01 again, and this time I think it should use new ${List} value, but it's not. Because Variable File has higher priority.

How can I made TC01 use new global variable ${List} later in second time? Is that possible?

Thank you very much in advance.

Foi útil?

Solução

Well, finally I solve this problem. Before reboot save the needed variable and value into sqlite db, and fetch them after reboot.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top