À partir du 27 mars 2025, nous vous recommandons d'utiliser android-latest-release
au lieu de aosp-main
pour créer et contribuer à AOSP. Pour en savoir plus, consultez la section Modifications apportées à AOSP.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
SkipReason
public
class
SkipReason
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.skipped.SkipReason
|
Indiquez le motif et les métadonnées du test que vous souhaitez ignorer.
Résumé
Constructeurs publics
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger)
Paramètres |
message |
String |
trigger |
SkipReason.DemotionTrigger |
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger,
String bugId)
Paramètres |
message |
String |
trigger |
SkipReason.DemotionTrigger |
bugId |
String |
SkipReason
public SkipReason (String message,
String trigger)
Paramètres |
message |
String |
trigger |
String |
SkipReason
public SkipReason (String message,
String trigger,
String bugId)
Paramètres |
message |
String |
trigger |
String |
bugId |
String |
Méthodes publiques
getBugId
public String getBugId ()
Renvoie l'ID du bug associé à l'état de l'élément ignoré. Facultatif.
getReason
public String getReason ()
Renvoie le motif associé à l'état de la lecture.
getTrigger
public String getTrigger ()
Renvoie le déclencheur associé à l'état de saut.
toString
public String toString ()
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/27 (UTC)."],[],[],null,["# SkipReason\n==========\n\n\n`\npublic\n\n\nclass\nSkipReason\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.result.skipped.SkipReason |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nProvide a reason and its metadata for skipping a test.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger,%20java.lang.String))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger, String bugId) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String))`(String message, String trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String,%20java.lang.String))`(String message, String trigger, String bugId) ` |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | ` `[fromString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#fromString(java.lang.String))`(String skipReasonMessage) ` Parses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html). |\n| ` String` | ` `[getBugId](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getBugId())`() ` Returns the bug id associated with skip status. |\n| ` String` | ` `[getReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getReason())`() ` Returns the reason associated with the skip status. |\n| ` String` | ` `[getTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getTrigger())`() ` Returns the trigger associated with the skip status. |\n| ` String` | ` `[toString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString())`() ` |\n\nPublic constructors\n-------------------\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### fromString\n\n```\npublic static SkipReason fromString (String skipReasonMessage)\n```\n\nParses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------|-----------------|\n| `skipReasonMessage` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------|--------|\n| [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | \u003cbr /\u003e |\n\n### getBugId\n\n```\npublic String getBugId ()\n```\n\nReturns the bug id associated with skip status. Optional.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getReason\n\n```\npublic String getReason ()\n```\n\nReturns the reason associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getTrigger\n\n```\npublic String getTrigger ()\n```\n\nReturns the trigger associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]