예제 #1
0
 def __init__(
     self,
     *,
     continue_forever: bool = False,
     loops: int = None,
     name: str = 'Loop Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.continue_forever = continue_forever
     if not continue_forever:
         if loops is None:
             loops = 1
         if loops == -1:
             raise ValueError(
                 "continue_forever can't be false, while loops equal -1")
         self.loops = loops
     else:
         if loops is None:
             loops = -1
         if loops > -1:
             raise ValueError(
                 "continue_forever can't be true, while loops not equal -1")
         self.loops = loops
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #2
0
 def __init__(self, *,
              ignoreSubControllers: bool = False,
              accrossThreads: bool = False,
              name: str = 'Interleave Controller',
              comments: str = '',
              is_enabled: bool = True,):
     self.ignoreSubControllers = ignoreSubControllers
     self.accrossThreads = accrossThreads
     IncludesElements.__init__(self)
     BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)         
예제 #3
0
 def __init__(
     self,
     *,
     name: str = 'Once Only Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #4
0
 def __init__(self, *,
              perThread: bool = False,
              throughput: float = 1,
              throughputMode: ThroughputMode = ThroughputMode.TOTAL,
              name: str = 'Throughput Controller',
              comments: str = '',
              is_enabled: bool = True,):
     self.throughputMode = throughputMode
     self.perThread = perThread
     self.throughput = throughput
     IncludesElements.__init__(self)
     BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)         
예제 #5
0
 def __init__(
     self,
     *,
     condition: str,
     name: str = 'While Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.condition = condition
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #6
0
 def __init__(
     self,
     *,
     node_path: str,
     name: str = 'Module Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.node_path = node_path
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #7
0
 def __init__(
     self,
     *,
     ignoreSubControllers: bool = False,
     name: str = 'Random Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.ignoreSubControllers = ignoreSubControllers
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #8
0
 def __init__(
     self,
     *,
     includePath: str,
     name: str = 'Include Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.includePath = includePath
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #9
0
 def __init__(
     self,
     *,
     switchValue: str,
     name: str = 'Switch Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.switchValue = switchValue
     IncludesElements.__init__(self)
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #10
0
 def __init__(
     self,
     *,
     includeTimers: bool = False,
     parent: bool = False,
     name: str = 'Transaction Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.includeTimers = includeTimers
     self.parent = parent
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #11
0
 def __init__(
     self,
     *,
     condition: str,
     evaluateAll: bool = False,
     useExpression: bool = True,
     name: str = 'If Controller',
     comments: str = '',
     is_enabled: bool = True,
 ):
     self.condition = condition
     self.evaluateAll = evaluateAll
     self.useExpression = useExpression
     BasicController.__init__(self,
                              name=name,
                              comments=comments,
                              is_enabled=is_enabled)
예제 #12
0
 def test_negative2(self):
     with pytest.raises(TypeError):
         TestPlan().append(BasicController())
예제 #13
0
 def test_positive2(self):
     BasicController().append(BasicPostProcessor())
예제 #14
0
 def test_positive3(self):
     BasicThreadGroup().append(BasicController())
예제 #15
0
 def test_negative4(self):
     with pytest.raises(TypeError):
         BasicSampler().append(BasicController())
예제 #16
0
 def __init__(self, *,
              name: str = 'Simple Controller',
              comments: str = '',
              is_enabled: bool = True,):
     IncludesElements.__init__(self)
     BasicController.__init__(self, name=name, comments=comments, is_enabled=is_enabled)         
 def test_positive3(self):
     BasicTestFragment().append(BasicController())
예제 #18
0
 def test_positive8(self):
     BasicController().append(BasicTimer())
예제 #19
0
 def test_negative1(self):
     with pytest.raises(TypeError):
         BasicController().append(BasicTestFragment())
예제 #20
0
 def test_positive6(self):
     BasicController().append(BasicAssertion())
예제 #21
0
 def test_positive7(self):
     BasicController().append(BasicListener())
예제 #22
0
 def test_positive5(self):
     BasicController().append(BasicSampler())
예제 #23
0
 def test_positive4(self):
     BasicController().append(BasicConfig())
예제 #24
0
 def test_negative2(self):
     with pytest.raises(TypeError):
         BasicController().append(BasicThreadGroup())
예제 #25
0
 def test_positive1(self):
     BasicController().append(BasicPreProcessor())
예제 #26
0
 def test_negative3(self):
     with pytest.raises(TypeError):
         BasicController().append(NonTestElements())