Can change the variables' names as I prefer? #2110
              
                
                  
                  
                    Answered
                  
                  by
                    mdmintz
                  
              
          
                  
                    
                      chenhaijun02
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         Hello,Michael  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            mdmintz
          
      
      
        Sep 14, 2023 
      
    
    Replies: 1 comment
-
| 
         Use  Eg:  [1] > HOME/SeleniumBase/examples/test_null.py(7)
   .
   6         def test_null(self):
   7  ->         pass
(Pdb+) self.variables
{'MY_VAR': 'abc', 'VAR123': 123}
(Pdb+) self.variables["MY_VAR"]
'abc' | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        mdmintz
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Use
--variables=DICTto pass in custom variables.Eg:
pytest --variables='{"MY_VAR":"abc", "VAR123":123}'