File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,7 @@ def test_all_sample_codes(self):
580580 failed = []
581581 succeeded = []
582582 f = open ('list_of_sample_codes.txt' , 'r' )
583+ numRetries = 3 ;
583584 for line in f :
584585 #print(line)
585586 items = line .split ('\t ' )
@@ -588,15 +589,19 @@ def test_all_sample_codes(self):
588589 shouldApiRun = items [2 ].rstrip ()[0 ]
589590
590591 if (shouldApiRun == '0' ):
591- print ("Not runnning the test : " + apiName )
592- elif (shouldApiRun == '1' ):
593- #print("Running : " + apiName)
594- response = getattr (self , apiName )()
595- #if(self.validate_response(response)):
596- # succeeded.append(apiName)
597- #else:
598- # failed.append(apiName)
592+ continue
599593
594+ if (shouldApiRun == '1' ):
595+ for i in range (0 , numRetries ):
596+ #print("Running : " + apiName)
597+ response = getattr (self , apiName )()
598+ #if(self.validate_response(response)):
599+ # succeeded.append(apiName)
600+ #else:
601+ # failed.append(apiName)
602+
603+ if self .validate_response (response ) == True :
604+ break ;
600605 self .assertTrue (self .validate_response (response ))
601606
602607 #print("-------- Success ----------")
You can’t perform that action at this time.
0 commit comments