Skip to content

Extra Test data #2810

Answered by Jeremy-QA
Jeremy-QA asked this question in Q&A
May 28, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

i think i got it @mdmintz and its working :)

def test(self):
        device_list = self.variables.get("device")
        
        if device_list == "android":
            print("The device is:", device_list)
        elif device_list == "ios":
            print("The device is:", device_list)
        else:
            print("not found")

pytest .\practice.py --variables="{'device':'ios'}" -s
The device is: ios

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Jeremy-QA
Comment options

@Jeremy-QA
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants