Python Forum
Printing arguments in python console.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing arguments in python console.
#1
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.
Reply
#2
please show complete code so it can be run.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  In Console,Python anna17 0 134 Mar-23-2024, 08:24 PM
Last Post: anna17
  How do I handle escape character in parameter arguments in Python? JKR 6 1,039 Sep-12-2023, 03:00 AM
Last Post: Apoed2023
Question log.exception() without arguments in old Python versions? cthart 5 1,123 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Python Flask Realtime system printout (console) ffmpeg jttolleson 3 2,860 Apr-18-2022, 06:39 PM
Last Post: jttolleson
  Python library for win32 console commands eldiener 3 3,384 Aug-24-2021, 10:28 PM
Last Post: bowlofred
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 7,567 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  to call via console a python-programm Liki 9 3,137 Nov-22-2020, 01:10 AM
Last Post: bowlofred
  My Python Console doesn´t work ModuleNotFoundError: No module named 'tokenize' RuanKishibe 1 3,078 Aug-06-2020, 10:07 PM
Last Post: deanhystad
  Adding colour to Python console Archangelos 4 2,688 Apr-15-2020, 05:15 PM
Last Post: newbieAuggie2019
  how to get some values from js on python console by python code vivekagrey 1 1,837 Feb-13-2020, 09:26 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020