@staticmethod
def getDEVICE_TESTS_FILE(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/%s/tests.xml")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/%s/tests.xml")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/%s/tests.xml")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/%s/tests.xml")
@staticmethod
def getDEVICE_SUITE_TARGET(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/")
@staticmethod
def getDEVICE_SUITE_FOLDER(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/")
@staticmethod
def getDEVICE_BUILD_INFO_PATH(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/buildinfo.xml")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/buildinfo.xml")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/buildinfo.xml")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "Documents/tct/buildinfo.xml")
@staticmethod
def getDEVICE_CAPABILITY_PATH(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/capability.xml")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/capability.xml")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "Documents/tct/capability.xml")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "Documents/tct/capability.xml")
@staticmethod
def getPRE_CONF_DEVICE_INI(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tct-testconfig.ini")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tct-testconfig.ini")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tct-testconfig.ini")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/tct-testconfig/tct-testconfig.ini")
@staticmethod
def getPRE_CONF_DEVICE_JSON(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/preconfigure.json")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/preconfigure.json")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/preconfigure.json")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/tct-testconfig/preconfigure.json")
@staticmethod
def getPRE_CONF_DEVICE_XML(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tests.xml")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tests.xml")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/tests.xml")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/tct-testconfig/tests.xml")
@staticmethod
def getPORT_CONF_DEVICE_JSON(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/portconfigure.json")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/portconfigure.json")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/portconfigure.json")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/tct-testconfig/portconfigure.json")
@staticmethod
def getTCT_PORT_CONF_DEVICE_JSON(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/portconfigure.json")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/portconfigure.json")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/portconfigure.json")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/portconfigure.json")
@staticmethod
def getTCT_PRE_CONF_DEVICE_JSON(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/preconfigure.json")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/preconfigure.json")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/preconfigure.json")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/preconfigure.json")
@staticmethod
def getNAT_CONF_DEVICE_TXT(_tizenV):
- if _tizenV and _tizenV.find('3.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/TC_Config.txt")
- elif _tizenV and _tizenV.find('4.0') > -1:
- return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/TC_Config.txt")
- elif _tizenV and _tizenV.find('5.0') > -1:
+ if _tizenV and float(_tizenV.split('_')[-1]) >= 3.0:
return os.path.join(Constants.DEVICE_SUITE_TARGET_30, "tct/opt/tct-testconfig/TC_Config.txt")
else:
return os.path.join(Constants.DEVICE_SUITE_TARGET_24, "tct/opt/tct-testconfig/TC_Config.txt")