{"id":18802387,"url":"https://github.com/jd-opensource/yintao-core","last_synced_at":"2026-02-12T14:32:25.275Z","repository":{"id":196422254,"uuid":"678715844","full_name":"jd-opensource/YinTao-core","owner":"jd-opensource","description":"YinTao 执行库","archived":false,"fork":false,"pushed_at":"2024-11-04T07:58:33.000Z","size":2127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-20T06:30:42.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-15T07:45:23.000Z","updated_at":"2025-03-10T07:48:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"30ae46d5-7be4-41b7-8753-8fef3460efda","html_url":"https://github.com/jd-opensource/YinTao-core","commit_stats":null,"previous_names":["jd-opensource/yintao-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jd-opensource/YinTao-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FYinTao-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FYinTao-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FYinTao-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FYinTao-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-opensource","download_url":"https://codeload.github.com/jd-opensource/YinTao-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-opensource%2FYinTao-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29368689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T22:27:47.065Z","updated_at":"2026-02-12T14:32:25.250Z","avatar_url":"https://github.com/jd-opensource.png","language":"TypeScript","readme":"# YinTao-core\n\n\u003cdiv align=center\u003e\u003cimg width=\"150\" height=\"150\" src=\"https://yintao.jd.com/icon.png\"/\u003e\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"Tests\" src=\"https://badgen.net/badge/webUi/auto/blue?icon=test\"\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"Test Dependencies\" src=\"https://badgen.net/badge/webUi/auto/red?icon=github\" /\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"NPM Version\" src=\"https://badgen.net/badge/npm/8.19.3/yellow\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"#\"\u003e\u003cimg alt=\"NPM Version\" src=\"https://badgen.net/badge/license/MIT/blue\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=center\u003e\n    \u003ci\u003eYinTao 执行引擎\n    \u003c/br\u003ejs/ts脚本执行输出\u003c/i\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [主流程](#主流程)\n    - [跨平台的系统通知](#跨平台的系统通知)\n- [开发规范](#开发规范)\n- [问题跟踪](#问题跟踪)\n- [贡献](#贡献)\n- [徽章](#徽章)\n- [执照](#执照)\n- [Creators](#Creators)\n- [帮助](#帮助)\n\n\n## Background\n  hi, 准备开始UI自动化了吗？\n\n  觉得难吗?\n\n  建议你从这个库开始!\n\u003e 用简单的逻辑描述你的工作，剩下的交给我\n\n\n  \n## Install\n\n推荐使用  `yarn`。十分简单。\n```shell\nyarn add @YinTao-jd/YinTao-core\n```\n\n## Usage\n\n```sh\nYinTao main.js # default use YinTao-drier\nYinTao -b   # get local browsers\n-\u003e  usable browsers: [ 'chrome', 'ie', 'firefox', 'edge', 'edge-legacy' ]\nYinTao chrome  main.js // use other browser\n```\n\n## 主流程\n\n- 采用 `cli` 脚本维度进行执行。这样可以以多进程维度同时执行多个测试。\n初始启动浏览器，进入待执行界面。\n- 等待脚本文件执行， `page.to` 起始挂载 运行的首个测试地址。整个脚本内容为单个 `case/flow`\n- 同样采用合并脚本的形式执行串联任务。\n- 运行时需提供当前执行状态，是以并合执行还是普通单文件。以使用户单文件情况下也可正常调试。\n- 日志逻辑相同。\n\n\n\u003e 起始命令用 `page.create` 新窗口不影响老的用例，但依旧可以继承老数据。 \n\n### 跨平台的系统通知\n\u003e node-notifier  https://github.com/mikaelbr/node-notifier\n\n## 开发规范\n\n1. 复杂函数必须采用中文注释，不建议使用函数同名中文注释，注释仅表达坑点，而非实现。\n2. 字符串强制使用 ' 单引号，禁止非必要的;符号。\n3. 引用对象必须给明，强制类型，禁止传递any等不明确内容。\n4. 新功能必须添加单元测试，上线前单元测试必须通过。\n5. 禁止在非必要的时候写大函数，避免代码臃肿，单一使用的地方禁止封装函数(除非它可能被调用)。\n\n## 问题跟踪\n\n使用我们的 `Coding Issues` 页面 [报告错误](https://coding.jd.com/YinTao/YinTao-core/issues/new) 并 [提出改进建议](https://coding.jd.com/YinTao/YinTao-core/issues/new)\n\n## 贡献\n\n阅读我们的[贡献指南](https://coding.jd.com/YinTao/YinTao-core/blob/master/CONTRIBUTING.md) ，了解如何为项目做出贡献。\n\n## 徽章\n\n向大家展示您正在使用 `YinTaoCore`: ![Tested with YinTaoCore](https://img.shields.io/badge/tested%20with-YinTaoCore-2fa4cf.svg)\n\n要显示此徽章，请将以下代码添加到您的存储库自述文件中：\n\n```html\n\u003ca href=\"https://coding.jd.com/YinTao/YinTao-core/\"\u003e\n    \u003cimg alt=\"Tested with YinTaoCore\" src=\"https://img.shields.io/badge/tested%20with-YinTaoCore-2fa4cf.svg\"\u003e\n\u003c/a\u003e\n```\n\n## 执照\n\n\u003eCode released under the [MIT license](LICENSE).\n\n## Creators\n\n\u003e 京东集团-京东零售-商业提升事业部-广告架构部-技术效能部\n\n## 帮助\n\n\u003e zhouyuan11@jd.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fyintao-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-opensource%2Fyintao-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-opensource%2Fyintao-core/lists"}