npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mec_core

v1.0.0

Published

mec core

Readme

MEC Core

语句模板大全

为了让自然语言描述的用例能翻译成代码在UI自动化测试平台运行,MEC提供了公共语句模板。

为了阅读通顺,语句模板前需要加上无实际含义的介词(假如,当,那么,并且,但是)。

语句模板中"[]"内需输入值,否则语句将视为不合法语句。

目前MEC Core提供了以下语句模板:

语句模板 | 含义 ---|--- 点击[] | 点击某TestID的元素 点击文案[] | 点击某文案的元素 []为[]的元素的[]是[] | 判断某元素的属性为什么 []的文案包含[] | 判断某元素的文案包含什么 []的文案为[] | 判断某元素的文案是什么 存在[]的文案 | 存在文案为什么的元素 存在[]的元素 | 存在TestID为什么的元素 存在[]为[]的元素 | 存在某属性值为某某的元素 不存在[]的元素 | 判断不存在TestID []向上滑动[] | 将某TestId元素向上滑动一定距离 []向下滑动[] | 将某TestId元素向下滑动一定距离 []向左滑动[] | 将某TestId元素向左滑动一定距离 []向右滑动[] | 将某TestId元素向右滑动一定距离 在[]中输入[] | 在某某元素中输入值 绑定MockSuite[] | 绑定MockSuite 绑定MockSuite[]并开启Case[] | 绑定MockSuite并开启Case 移除MockSuite[] | 移除指定MockSuite 移除设备所有MockSuite | 移除设备所有MockSuite 跳转到[] | 跳转到某个Schema 回到首页 | 回到机票首页 登录账号[]密码[] | 登录账号密码 退出登录 | 退出登录 等待[]秒 | 等待一定时间

语句模板扩展原则

如果有新的需求可对当前语句库进行扩展,一条新的公共语句需要满足以下条件:

1、 限定所有可能引起理解歧义的变量。 说明: “列表滑动隐藏标题”这条逻辑描述可能引起歧义, 需要表述为 “机票列表向下滑动10px隐藏头部标题,并且机票列表向上滑动10px展示头部标题”。

2、 能通过正则与其他语句区分。 说明: 保证自然语句和UI测试代码一一对应。

3、 尽可能的符合人的阅读习惯。 说明: 降低阅读成本是使用自然语言描述逻辑的初衷。