Comments (5)
Can you please provide a test case? What you say sounds impossible - the page object library is just keywords, it doesn't affect how robot runs tests.
What is "the keyword Test Setup"? And what is my_step
?
On Jul 4, 2016, at 5:11 AM, Th33x1l3 [email protected] wrote:
When using your page object library, if you try to use the keyword
Test Setupthe my_step is never run. Suit Setup, Suit Teardown and Test Teardown runs ok. Only Test setup is not run.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from robotframework-pageobjectlibrary.
Test Setup is the basic keyword in robot framework --> http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-setup-and-teardown
my_step is just a example placeholder. You could put any keyword there.
I'm running the testes on Ubuntu 16, using python 2.7, virtual environments.
A test case for this problem is simple to do:
create a keyword Open Test Browser
this keyword should open a firefox browser
Now in setup add the following
Test Setup Open Test Browser
Suite Setup
Test Teardown Close All Browsers
Now just add 2 tests. For example just open google and type anything on it.
The expected outcome is that for each test, robot opens a browser for the test, do something then close the browser.
Now the behavior I'm observing is as follow: If i let Open Test Browser on Test Setup
it's not run. But if i put it on Suite Setup
it runs once (as expected). Just that it only runs for the 1st test.
from robotframework-pageobjectlibrary.
I am not able to duplicate this, and I can't think of how it is even possible for the page object library to cause a test setup to not work. When I did as you instructed, each test opened and then closed a new browser window as expected.
Sorry, but I'm going to have to close this since you didn't provide a complete test case I could use to duplicate the problem, and I can't duplicate it based on your description.
from robotframework-pageobjectlibrary.
I know this is a 4 year old thread, but I came upon this issue as well. Thing is that the reason this is happening is due to a conflict on the [Setup] tag, on the test cases level. If you try to have the "Test Setup" tag on the settings along with the [Setup] tag on the test case level, then a failure will occur
from robotframework-pageobjectlibrary.
This sounds like robot is working as designed. Are you saying this only happens when using the page object library? Robot is designed for the [Setup]
inside a test to override the Test Setup
setting.
If the is happening only when using the page object library, please provide an example.
from robotframework-pageobjectlibrary.
Related Issues (19)
- First Feedback HOT 2
- Updates for new versions of SeleniumLibrary HOT 1
- Dynamic elements in locators? HOT 2
- Error while importing module six
- Installation issue with Python 3.6 HOT 4
- Failed when keyword conflicts in two files HOT 3
- Problem with setting library search order
- Localization Support
- Webdriver didn't get website with document.readyState == 'complete' HOT 3
- Init method of user class execute few times
- wait_for_page_refresh, "timeout" parameter not taken into account by the wait_for_condition function
- Need to implement Inheritance using PageObject library HOT 4
- User defined inheritance using Page Object Library HOT 1
- Argument check probably wrong
- Page Object and robotframework-browser (playwright)?
- Could this package be used with other test-framework HOT 5
- Page objects with extended Selenium2Library HOT 3
- How to do when lots of page objects are in different directories? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-pageobjectlibrary.