Git Product home page Git Product logo

Comments (5)

boakley avatar boakley commented on August 19, 2024

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 Setup

the 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.

Th33x1l3 avatar Th33x1l3 commented on August 19, 2024

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.

boakley avatar boakley commented on August 19, 2024

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.

iprentzas avatar iprentzas commented on August 19, 2024

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.

boakley avatar boakley commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.