أداة اختبار
يأتي WebdriverIO مع أداة اختبار خاصة به لمساعدتك على بدء الاختبار بأسرع وقت ممكن. تم تصميمها للقيام بكل العمل نيابة عنك، وتسمح بالتكامل مع خدمات الطرف الثالث، وتساعدك على تشغيل اختباراتك بكفاءة قدر الإمكان.
أداة اختبار WebdriverIO مجمعة بشكل منفصل في حزمة NPM @wdio/cli
.
قم بتثبيتها كما يلي:
- npm
- Yarn
- pnpm
npm install @wdio/cli
yarn add @wdio/cli
pnpm add @wdio/cli
لمشاهدة مساعدة واجهة سطر الأوامر، اكتب الأمر التالي في الطرفية الخاصة بك:
$ npx wdio --help
wdio <command>
Commands:
wdio config Initialize WebdriverIO and setup configuration in
your current project.
wdio install <type> <name> Add a `reporter`, `service`, or `framework` to
your WebdriverIO project
wdio repl <option> [capabilities] Run WebDriver session in command line
wdio run <configPath> Run your WDIO configuration file to initialize
your tests.
Options:
--version Show version number [boolean]
--help Show help [boolean]