Robot Framework vs Pytest

Sou um apoiador ativo do Robot Framework. Já escrevi no Habré que ele pode ser usado para resolver quase todos os problemas de automação de teste, especialmente quando o desenvolvimento é em Python. No mesmo artigo, mencionei que a empresa usa o Pytest em projetos relacionados. Eu precisava conhecer essa ferramenta bem de perto, então agora estou pronto para fazer uma comparação completa com o Robot Framework, é claro, de minha torre do sino pessoal.

Robot vs.  Snake by Beanhex (https://www.weasyl.com/~beanhex)
Robot vs. Snake by Beanhex (https://www.weasyl.com/~beanhex)

, , jUnit Robot Framework Java. , Robot Framework ( Python) . jUnit Python ( Pytest) Robot Framework .

?

Pytest

, Pytest - xUnit Python. jUnit nUnit ( Java .NET ), Pytest - , , -. xUnit- - , . . 

Pytest, xUnit-, . Allure. , , . , Pytest , Allure - , - .

Robot Framework

Pytest, Robot Framework - domain specific language (DSL) - , . Python, . Python , Robot Framework. , ( , ), .

Robot Framework , . , . Cucumber Java. Robot Framework ( ), .. , - . 

, . Slack, Robot Framework . . Robot Framework.

Robot Framework

Pytest xUnit - test. , test. . 

, Pytest , -, , , . Pytest -, , .

, , “” , XXI - -.

Robot Framework -. Keywords, . , . , Robot Framework , keywords, -. , (“ , , , -”). , , . , , . , . 

Suite setup

, - (-) , , , . Robot Framework suite setup, . suite teardown, , - (test setup test teardown). , .

xUnit , suite setup, Pytest scope=”class”

Pytest - ( suite setup - .. ). , . scope=”class” (.. suite setup), , suite setup -. , , , - . - , Robot Framework, suite setup .

Pytest , . . - Python, , (, self.__class__.test_id = 2). , - .

, Pytest Allure. . - , Allure , . suite setup. . , . 

, xUnit .

Pytest+Allure Robot Framework . , - Robot , . , . , , API . , , . Pytest , , Robot Framework.

Robot Framework . , . 

keyword- keyword-. , keyword, API ID, keyword, API ( , API - ID ).

, : “ ”. “ ” - keyword-, “ ” - keyword, API . “ ”, “ ” - keyword.

. keyword “ ” “ ”, (“ ”).

Robot Framework . , , , , , . . , Jira , . , , , “” , . , .

Pytest , . - , . , , . 

, Allure . , , Pytest+Allure Robot Framework . , Pytest+Allure DSL. , - , Pytest Allure .

Pytest

Pytest. .

. , Robot Framework, . , Pytest.

, , . , , . , ( ).

Pytest

, Robot Framework - Pytest - . Robot Framework 10 10- , , . Pytest .

. , API , (, 7 , - 10). . , - 70 “” (  pair-wise). product itertools ( ) -, 70 , API exhaustive testing. .

Robot Framework . -, , 70 . .

Robot Framework - . , , .

:

P.S. . VK, FB, Instagram  Telegram-, Maxilect.




All Articles