Jan-27-2019, 09:33 PM
Hello all,
I am a new to python. I was writing PyTest for my gui. I use assert to check the condition true or false.
I code every where in my test case... 'myBoxhasValue' + str(value) + 'spins'.
When the given conditions fails, its prints the same value like the code 'myBoxhasValue' + str(value) + 'spins'. FAILED. But I want also print the str(value)in the console.
currently its prints 'myBoxhasValue' + str(value) + 'spins'.-- FAILED
But i need 'myBoxhasValue' + 30 + 'spins'.--FAILED.
I dont know how to print the passing arguments in the console.
I am a new to python. I was writing PyTest for my gui. I use assert to check the condition true or false.
I code every where in my test case... 'myBoxhasValue' + str(value) + 'spins'.
When the given conditions fails, its prints the same value like the code 'myBoxhasValue' + str(value) + 'spins'. FAILED. But I want also print the str(value)in the console.
currently its prints 'myBoxhasValue' + str(value) + 'spins'.-- FAILED
But i need 'myBoxhasValue' + 30 + 'spins'.--FAILED.
I dont know how to print the passing arguments in the console.