Cypress is an emerging JavaScript-based end to end automation test framework running on browsers directly. It is not based on Selenium -- if you have heard about another JavaScript-based automation test framework Protractor, it is still based on Selenium actually. Pre-condition knowledge For engineers who are familiar with JAVA/Python + selenium, to learn Cypress, of … Continue reading Cypress Automation Test Overview
Tag: automation test
Decorator in Python
In our daliy work when a project grows into a relative scale, very often we want to add additional features on an existing function. We can modify the function directly of course, however this violates Open-closed principle. Decorator is an effective solution to address such challenge--the name is pretty straightword to understand, when you decorator … Continue reading Decorator in Python
Take Screenshot Only When a Test Fail
when we conduct GUI test, it is not efficient if we take screenshot on each step, it also will produce lots of unusful screenshot files. However if a test failed, we do want to see the screenshot to facilitate bug investigation. How to make the automation code take screenshot ONLY when the test fail? Very … Continue reading Take Screenshot Only When a Test Fail
Data Driven Test in pytest –fixture
Fixture is definitely a shining point of pytest. It uses annotation @pytest.fixture to put in front of a method. In Python function can be used as parameter of another function. Thus when a function with @pytest.fixture is used as parameter for a test method, the return value of that function will be transferred to the … Continue reading Data Driven Test in pytest –fixture
Data Driven Test in pytest –parametization
Python is becoming the most popular programming language these days. The syntax is simple and expressive, there are tons of Python open source modules and frameworks available, and the community is welcoming and diverse. It's also getting more and more widely used in Automation Test. Data Driven is essential for a same test case but … Continue reading Data Driven Test in pytest –parametization