Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 557 Bytes

VDR105.md

File metadata and controls

24 lines (20 loc) · 557 Bytes

VDR105. Scenario subject should not be empty

The subject is used to represent user intentions, and intentions can not be empty.

❌ Anti-pattern

# scenarios/register_user.py
class Scenario(vedro.Scenario):
    subject = ""
    def when(self):
      self.response = ...

✅ Best practice

# scenarios/register_user.py
class Scenario(vedro.Scenario):
    subject = "register new user"
    def when(self):
      self.response = ...

Additional links