- Información general
- Comience ya
- Conceptos
- Uso de UiPath CLI
- Guías prácticas
- Recetas de CI/CD
- Referencia de los comandos
- Información general
- Códigos de salida
- Opciones globales
- agente de código UIP
- UIP Docsai
- añadir-entidad-de-datos-de-prueba
- añadir-cola-de-datos-de-prueba
- añadir-variación-de-datos-de-prueba
- Analizar
- Crear
- Crear proyecto
- Diferencia
- Buscar actividades
- obtener-reglas-del-analizador
- obtener-predeterminado-actividad-xaml
- obtener-errores
- obtener-casos-de-prueba-manual
- obtener-pasos-de-prueba-manual
- obtener versiones
- get-workflow-example
- indicar-aplicación
- indicar-elemento
- inspeccionar-paquete
- install-data-fabric-entities
- instalar-o-actualizar-paquetes
- enumerar-data-fabric-entities
- ejemplos-de-flujo-de-trabajo-de-lista
- Paquete
- restore
- archivo de ejecución
- plantillas-de-búsqueda
- iniciar-studio
- detener la ejecución
- UIA
- Seguimientos de UIP
- Migración
- Referencia y soporte
Syntax and options for `uip tm pack`, which packages an external Playwright test project into a UiPath automation package for Test Manager.
uip tm pack builds a UiPath automation package (.nupkg) from an external test project so Test Manager can execute it. Given a Playwright project's root, it discovers the project's test() blocks (including describe() groups and annotations), then bundles the project's source files and test metadata into a package ready to publish to the Orchestrator Package Feed. Every automation that testsets run later executes for a Playwright test case is produced by this command.
Sinopsis
uip tm pack --project-path <path> --type playwright [--project-key <key>] [--name <name>] [--package-version <version>] [-o <dir>] [--author <author>] [--description <desc>] [--no-create-test-cases] [--dry-run] [--output json]
uip tm pack --project-path <path> --type playwright [--project-key <key>] [--name <name>] [--package-version <version>] [-o <dir>] [--author <author>] [--description <desc>] [--no-create-test-cases] [--dry-run] [--output json]
--project-key is required unless --no-create-test-cases is passed.
All verbs honor the global options and the standard exit codes. uip tm pack accepts --tenant <name> and --log-level <level> (default Information); there is no -t short alias for --tenant on this command.
Argumentos
Nada.
Opciones
| Marca | Descripción |
|---|---|
--project-path <path> | Required. Path to the Playwright project root (for example, . for the current directory). The root must contain package.json, package-lock.json, and a playwright.config file. |
--type <type> | Required. Automation type being packaged. Only playwright is accepted; no other automation type routes through this verb. |
--project-key <key> | An existing Test Manager project key. Required unless --no-create-test-cases is passed. When test-case auto-creation is on (the default), matching test cases are auto-created in this project and the Playwright automation is auto-linked to each one — no manual link-automation or Select Automation step needed. Uppercase letters and digits only (^[A-Z0-9]+$). |
-n, --name <name> | Name of the resulting package. Defaults to the project folder name. |
--package-version <version> | Version string for the package (for example, 1.0.0). Defaults to 1.0.0. |
-o, --output <dir> | Output directory for the generated .nupkg. Defaults to .uipath. |
--author <author> | Defaults to "UiPath Developer". |
--description <desc> | No default. |
--no-create-test-cases | Disables test-case auto-creation. The only mode in which --project-key may be omitted; the package's automations then become available for manual selection instead. |
--dry-run | Runs the same validation as a real pack, but writes nothing. |
--output json | Emits machine-readable JSON to stdout (package name/version, output path, discovered test count) instead of human-readable text. |
npm is the only supported package manager for this command — the project root must contain a package-lock.json.
Ejemplo
uip tm pack \
--project-path . \
--type playwright \
--project-key SWAG \
--name SwagLabsDemo \
--package-version 1.0.0 \
-o .packages \
--output json
uip tm pack \
--project-path . \
--type playwright \
--project-key SWAG \
--name SwagLabsDemo \
--package-version 1.0.0 \
-o .packages \
--output json
Forma de datos
{
"Result": "Success",
"Code": "ExternalTestPack",
"Data": {
"Package": "SwagLabsDemo@1.0.0",
"Output": ".packages/SwagLabsDemo.1.0.0.nupkg",
"TestCount": 12
}
}
{
"Result": "Success",
"Code": "ExternalTestPack",
"Data": {
"Package": "SwagLabsDemo@1.0.0",
"Output": ".packages/SwagLabsDemo.1.0.0.nupkg",
"TestCount": 12
}
}
After packaging, publish the .nupkg to your tenant's Orchestrator Package Feed — manually in Orchestrator, by dropping it into a watched folder, or with uip or packages upload — before it can be selected in Test Manager.
Relacionado
- testcases — see the warning there before using
link-automationon any test case created by this command. - testsets —
testsets runexecutes the automations this command produces. - uip or packages —
packages uploadpublishes the generated.nupkgto the Orchestrator Package Feed.
Ver también
- Descripción general de Test Manager
- uip solution pack and uip rpa pack — precedent for how a "pack" verb is documented for other resource types.