summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils
diff options
context:
space:
mode:
authoritraviv <itraviv@cisco.com>2016-10-30 18:19:10 +0200
committeritraviv <itraviv@cisco.com>2016-10-30 18:19:19 +0200
commiteea163a280865ca20f1aaee9dab846bc0c9f6389 (patch)
tree54b75311ddbc0a48f03672b770ae149e862f44d3 /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils
parenta29339a3349f92aecc8f298fe52ec42975afa1e1 (diff)
added action name to differ between same tests on different times
Signed-off-by: itraviv <itraviv@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
index ece4cf10..2c4e019b 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
@@ -85,8 +85,9 @@ class GA_EXCEPTION_ObjClass(GA_ObjClass):
#..................................................................class GA_TESTING_ObjClass................................................................
class GA_TESTING_ObjClass(GA_ObjClass):
- def __init__(self,cid,trackerID,TRexMode,TestName,SetupName,appName,appVer,TestType,Mppspc,GoldenMin,GoldenMax):
+ def __init__(self,cid,trackerID,TRexMode,TestName,SetupName,appName,ActionNumber,appVer,TestType,Mppspc,GoldenMin,GoldenMax):
GA_ObjClass.__init__(self,cid,trackerID,appName,appVer)
+ self.ActionNumber = ActionNumber
self.TRexMode = TRexMode
self.TestName = TestName
self.SetupName = SetupName
@@ -99,7 +100,7 @@ class GA_TESTING_ObjClass(GA_ObjClass):
def generate_payload(self):
self.payload+='&ec=TRexTests'
- self.payload+='&ea=RegressionReport'
+ self.payload+='&ea='+str(self.ActionNumber)
self.payload+='&cd2='+str(self.TRexMode)
self.payload+='&cd1='+str(self.TestName)
self.payload+='&cd3='+str(self.SetupName)
@@ -283,8 +284,8 @@ class GAmanager_Regression(GAmanager):
self.GoogleID = GoogleID
self.AnalyticsUserID = AnalyticsUserID
- def gaAddTestQuery(self,TestName,TRexMode,SetupName,TestType,Mppspc,GoldenMin,GoldenMax):
- self.gaAddObject(GA_TESTING_ObjClass(self.AnalyticsUserID,self.GoogleID,TRexMode,TestName,SetupName,self.appName,self.appVer,TestType,Mppspc,GoldenMin,GoldenMax))
+ def gaAddTestQuery(self,TestName,TRexMode,SetupName,ActionNumber,TestType,Mppspc,GoldenMin,GoldenMax):
+ self.gaAddObject(GA_TESTING_ObjClass(self.AnalyticsUserID,self.GoogleID,TRexMode,TestName,SetupName,self.appName,ActionNumber,self.appVer,TestType,Mppspc,GoldenMin,GoldenMax))