Ich bin ein aktiver Unterstützer des Robot Framework. Ich habe bereits über Habré geschrieben, dass damit fast jedes Problem der Testautomatisierung gelöst werden kann, insbesondere wenn die Entwicklung in Python erfolgt. Im selben Artikel erwähnte ich, dass Pytest für verwandte Projekte im Unternehmen verwendet wird. Ich musste dieses Tool ziemlich genau kennenlernen und bin jetzt bereit, einen vollständigen Vergleich mit dem Robot Framework von meinem persönlichen Glockenturm aus anzustellen.

, , 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 - . , , .
: