27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Tradefed'i geliştirme
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bu bölüm, Tradefed geliştiricilerine yöneliktir. TF'yi genişletmek veya yeni test desteği eklemek istiyorsanız bu bölüm tam size göre.
Açık kaynak
Trade Federation'ın açık kaynaklı varyantını kullanmayı planlıyorsanız Trade Federation'ın AOSP android-latest-release
şubesini kontrol etmek ve derlemek için aşağıdaki komutları kullanın:
cd <sourceroot>
mkdir android-latest-release
cd android-latest-release
repo init -u https://android.googlesource.com/platform/manifest -b android-latest-release
repo sync -c -j8
source build/envsetup.sh
lunch aosp_cf_arm64_only_phone-userdebug # or any other device target
m -j tradefed-all
Daha fazla bilgi için Geliştirme Ortamı bölümüne bakın.
Açık kaynak olarak kullanılabilen tüm Trade Federation kodları, AOSP'nin tools/tradefederation/ git projesinde saklanır. Kod yazarken ve değişiklik gönderirken lütfen açık kaynak yönergelerini göz önünde bulundurun.
Alternatif olarak, Trade Federation'ı kullanan ancak çerçeve üzerinde çalışmadığınız testler/yardımcı programlar oluşturuyorsanız onay sürecini hızlandırmak için çalışmanızı Trade Federation katkı projelerinden birine yerleştirebilirsiniz.
Kodlama stili
Trade Federation, aşağıdaki açıklamalarla birlikte Android kodlama stili yönergelerine uyar: Arayüz adlarının önüne "I" eklenir (ör. ITestDevice).
Eclipse'i kullanarak geliştirme
Tradefed'i geliştirmek için Eclipse'i kullanmak istiyorsanız ortamınızı ayarlamayla ilgili ipuçları için Eclipse IDE'yi ayarlama başlıklı makaleyi inceleyin.
Tradefed'in testlerini çalıştırma
Trade Federation'da değişiklik yaptınız ve bunu nasıl test edeceğinizi mi merak ediyorsunuz? Trade Federation testlerini çalıştırma başlıklı makaleyi inceleyin.
Mimari
Tradefed'in işleyiş şeklini daha ayrıntılı bir şekilde anlamak istiyorsanız Mimari bölümüne bakın.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Develop Tradefed\n\nThis section is aimed at Tradefed developers. If you are interested in extending\nTF or adding new test support, this is the section for you.\n\nOpen source\n-----------\n\nIf you plan to use the open source variant of Trade Federation, use these\ncommands to check out and build the AOSP `android-latest-release` branch of\nTrade Federation: \n\n cd \u003csourceroot\u003e\n mkdir android-latest-release\n cd android-latest-release\n repo init -u https://android.googlesource.com/platform/manifest -b android-latest-release\n repo sync -c -j8\n source build/envsetup.sh\n lunch aosp_cf_arm64_only_phone-userdebug # or any other device target\n m -j tradefed-all\n\nSee [Development Environment](/docs/core/tests/tradefed/fundamentals/machine_setup)\nfor more details.\n\nAll open-sourceable Trade Federation code is stored in the\n[tools/tradefederation/](https://android.googlesource.com/platform/tools/tradefederation/)\ngit project of AOSP. Please keep the\n[open source guidelines](/docs/setup/contribute/code-style)\nin mind when writing code and submitting changes.\n\nAlternatively, if you are creating tests/utilities that use Trade Federation but\naren't working on the framework itself, consider placing your work inside one of\nthe [Trade Federation contrib projects](/docs/core/tests/tradefed/development/contribute-noncore) to speed approvals.\n\nCoding style\n------------\n\nTrade Federation follows the\n[Android coding style guidelines](/source/code-style),\nwith the following clarifications: interface names are prefixed with 'I' e.g.\nITestDevice.\n\nDevelop using Eclipse\n---------------------\n\nIf you are interested in using Eclipse in developing Tradefed, refer to\n[Set up Eclipse IDE](/docs/core/tests/tradefed/development/eclipse) for tips on\nsetting up your environment.\n\nRun Tradefed's tests\n--------------------\n\nYou made a change to Trade Federation and you are searching how to test it? see\n[Running Trade Federation's tests](/docs/core/tests/tradefed/development/tf-tests).\n\nArchitecture\n------------\n\nIf you seek a deeper understanding of the innerworkings of Tradefed, see the\n[Architecture](/docs/core/tests/tradefed/architecture) section."]]