टेस्ट मैपिंग
public class TestMapping
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.testmapping.TestMapping |
TEST_MAPPING फ़ाइल लोड करने के लिए एक वर्ग।
सारांश
खेत | |
---|---|
public static final Pattern | MAINLINE_REGEX |
public static final String | TEST_SOURCES
|
सार्वजनिक निर्माणकर्ता | |
---|---|
TestMapping (Path path, Path testMappingsDir, matchedPatternPaths) TestMapping (Path path, Path testMappingsDir, matchedPatternPaths) TEST_MAPPING फ़ाइल के पथ से |
सार्वजनिक तरीके | |
---|---|
static File | extractTestMappingsZip (File testMappingsZip) एक ज़िप फ़ाइल निकालें और उस निर्देशिका को वापस करें जिसमें अनज़िप की गई फ़ाइलों की सामग्री हो। |
static | getAllTests (File testMappingsDir) किसी दिए गए निर्देशिका से TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक। |
static Matcher | getMainlineTestModuleName ( TestInfo info) पैरामिट्रीकृत मेनलाइन परीक्षणों के लिए मैचर प्राप्त करने में सहायक। |
static | getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, extraZipNames, matchedPatternPaths) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, extraZipNames, matchedPatternPaths) दिए गए आर्टिफैक्ट के आधार पर सभी TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक। |
getTests (String testGroup, disabledTests, boolean hostOnly, keywords) getTests (String testGroup, disabledTests, boolean hostOnly, keywords) getTests (String testGroup, disabledTests, boolean hostOnly, keywords) किसी दिए गए समूह के लिए TEST_MAPPING फ़ाइल में सभी परीक्षण सेट करने में सहायक। | |
static | getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords) getTests ( IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords) डिवाइस बिल्ड में आर्टिफैक्ट के आधार पर सभी TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक। |
static void | listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir, filePaths) listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir, filePaths) सभी परीक्षण मैपिंग फ़ाइलों को सूचीबद्ध करने के लिए सहायक, सभी मूल निर्देशिकाओं और संबंधित आयात पथों की तलाश करें। |
static void | setIgnoreTestMappingImports (boolean ignoreTestMappingImports) टेस्टमैपिंग के अंदर mIgnoreTestMappingImports सेट करें। |
static void | setTestMappingPaths ( relativePaths) setTestMappingPaths ( relativePaths) TEST_MAPPING लोड करना सीमित करने के लिए TEST_MAPPINGS_ZIP के अंदर TEST_MAPPING पथ सेट करें। |
खेत
MAINLINE_REGEX
public static final Pattern MAINLINE_REGEX
TEST_SOURCES
public static final String TEST_SOURCES
सार्वजनिक निर्माणकर्ता
टेस्ट मैपिंग
public TestMapping (Path path, Path testMappingsDir,matchedPatternPaths)
TEST_MAPPING फ़ाइल के पथ से TestMapping
ऑब्जेक्ट बनाने के लिए कंस्ट्रक्टर।
पैरामीटर | |
---|---|
path | Path : TEST_MAPPING फ़ाइल के लिए ERROR(/Path) । |
testMappingsDir | Path : बिल्ड के लिए सभी TEST_MAPPING फ़ाइलों के फ़ोल्डर में ERROR(/Path) । |
matchedPatternPaths | ERROR(/Set ) ERROR(/Set ) मिलान किए गए पैटर्न को फाइल करने के लिए। |
सार्वजनिक तरीके
ExtractTestMappingsZip
public static File extractTestMappingsZip (File testMappingsZip)
एक ज़िप फ़ाइल निकालें और उस निर्देशिका को वापस करें जिसमें अनज़िप की गई फ़ाइलों की सामग्री हो।
पैरामीटर | |
---|---|
testMappingsZip | File : निकालने के लिए परीक्षण मैपिंग ज़िप की एक ERROR(/File) । |
रिटर्न | |
---|---|
File | परीक्षण मैपिंग ज़िप के लिए अस्थायी निर्देशिका की ओर इशारा करते हुए एक ERROR(/File) । |
getAllTest
public staticgetAllTests (File testMappingsDir)
किसी दिए गए निर्देशिका से TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक।
पैरामीटर | |
---|---|
testMappingsDir | File : ERROR(/File) निर्देशिका जिसमें सभी टेस्ट मैपिंग फ़ाइलें हैं। |
रिटर्न | |
---|---|
दी गई डायरेक्टरी और उसकी चाइल्ड डाइरेक्टरी में टेस्ट का Map<String, Set<TestInfo>> । |
getMainlineTestModuleName
public static Matcher getMainlineTestModuleName (TestInfo info)
पैरामिट्रीकृत मेनलाइन परीक्षणों के लिए मैचर प्राप्त करने में सहायक।
पैरामीटर | |
---|---|
info | TestInfo |
रिटर्न | |
---|---|
Matcher | पैरामिट्रीकृत मेनलाइन परीक्षणों के लिए एक ERROR(/Matcher) । |
फेंकता | |
---|---|
ConfigurationException |
getTest
public staticgetTests (IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords, extraZipNames, matchedPatternPaths)
दिए गए आर्टिफैक्ट के आधार पर सभी TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक। इसकी आवश्यकता तब होती है जब एक सूट रन के लिए किसी दिए गए समूह के लिए TEST_MAPPING फ़ाइलों में सभी परीक्षण चलाने की आवश्यकता होती है, उदाहरण के लिए, पूर्व-सबमिट करें।
पैरामीटर | |
---|---|
buildInfo | IBuildInfo : IBuildInfo बिल्ड का वर्णन करता है। |
testGroup | String : परीक्षण समूह का एक ERROR(/String) । |
hostOnly | boolean : सच है अगर केवल होस्ट पर चल रहे परीक्षण और डिवाइस की आवश्यकता नहीं है तो वापस किया जाना चाहिए। उन परीक्षणों को वापस करने के लिए गलत है जिन्हें चलाने के लिए डिवाइस की आवश्यकता होती है। |
keywords | ERROR(/String) का एक सेट। |
extraZipNames | ERROR(/String) का एक सेट जिसे मर्ज किया जाएगा। |
matchedPatternPaths | ERROR(/Set ) ERROR(/Set ) मिलान किए गए पैटर्न को फाइल करने के लिए। |
रिटर्न | |
---|---|
बिल्ड आर्टिफैक्ट में सेट किए गए परीक्षणों का एक Set<TestInfo> , test_mappings.zip। |
getTest
publicgetTests (String testGroup, disabledTests, boolean hostOnly, keywords)
किसी दिए गए समूह के लिए TEST_MAPPING फ़ाइल में सभी परीक्षण सेट करने में सहायक।
पैरामीटर | |
---|---|
testGroup | String : परीक्षण समूह का एक ERROR(/String) । |
disabledTests | ERROR(/String) का एक सेट। |
hostOnly | boolean : सच है अगर केवल होस्ट पर चल रहे परीक्षण और डिवाइस की आवश्यकता नहीं है तो वापस किया जाना चाहिए। उन परीक्षणों को वापस करने के लिए गलत है जिन्हें चलाने के लिए डिवाइस की आवश्यकता होती है। |
keywords | ERROR(/String) का एक सेट। |
रिटर्न | |
---|---|
परीक्षण जानकारी का एक Set<TestInfo> । |
getTest
public staticgetTests (IBuildInfo buildInfo, String testGroup, boolean hostOnly, keywords)
डिवाइस बिल्ड में आर्टिफैक्ट के आधार पर सभी TEST_MAPPING फ़ाइलों में सभी परीक्षणों को खोजने में सहायक।
पैरामीटर | |
---|---|
buildInfo | IBuildInfo : IBuildInfo बिल्ड का वर्णन करता है। |
testGroup | String : परीक्षण समूह का एक ERROR(/String) । |
hostOnly | boolean : सच है अगर केवल होस्ट पर चल रहे परीक्षण और डिवाइस की आवश्यकता नहीं है तो वापस किया जाना चाहिए। उन परीक्षणों को वापस करने के लिए गलत है जिन्हें चलाने के लिए डिवाइस की आवश्यकता होती है। |
keywords | ERROR(/String) का एक सेट। |
रिटर्न | |
---|---|
बिल्ड आर्टिफैक्ट में सेट किए गए परीक्षणों का एक Set<TestInfo> , test_mappings.zip। |
listTestMappingFiles
public static void listTestMappingFiles (Path testMappingDir, Path testMappingsRootDir,filePaths)
सभी परीक्षण मैपिंग फ़ाइलों को सूचीबद्ध करने के लिए सहायक, सभी मूल निर्देशिकाओं और संबंधित आयात पथों की तलाश करें।
पैरामीटर | |
---|---|
testMappingDir | Path : TEST_MAPPING फ़ाइल मूल निर्देशिका के लिए ERROR(/Path) । |
testMappingsRootDir | Path : बिल्ड के लिए सभी TEST_MAPPING फ़ाइलों के फ़ोल्डर में ERROR(/Path) । |
filePaths | ERROR(/Set ) ERROR(/Set ) सभी TEST_MAPPING पथों को संग्रहीत करने के लिए। |
setIgnoreTestMappingImports
public static void setIgnoreTestMappingImports (boolean ignoreTestMappingImports)
टेस्टमैपिंग के अंदर mIgnoreTestMappingImports सेट करें।
पैरामीटर | |
---|---|
ignoreTestMappingImports | boolean : टेस्ट मैपिंग में आयात को अनदेखा करना है या नहीं इसका एक बूलियन। |
setTestMappingPaths
public static void setTestMappingPaths (relativePaths)
TEST_MAPPING लोड करना सीमित करने के लिए TEST_MAPPINGS_ZIP के अंदर TEST_MAPPING पथ सेट करें।
पैरामीटर | |
---|---|
relativePaths | List<String> । |