تخطى إلى المحتوى الرئيسي

تنفيذ الاختبار

يشرح هذا المخطط الانسيابي عملية تنفيذ الاختبار والتفاعل بين @wdio/runner ومعظم حزم WebdriverIO الأخرى.

YesNo@wdio/runner:index called fromchild process via a run message.@wdio/runner:index run()Initialise BaseReporter object which creates a new@wdio/runner reporter instance.All reporters listedin the wdio.conf.js reporters property are initialized.Test framework from the wdio.conf. js property isinitialized usingthe @wdio/utils initializePlugin method. Supported frameworks include @wdio/mocha-framework,@wdio/cucumber-framework and @wdio/jasmine-framework.Initialise servicesRun wdio.conf.js beforeSession hook.Call @wdio/runner:index _initSession.@wdio/runner:utils initializeInstancecalls webdriverio:index.js remote().Is protocolwebdriver?Call webdriver:index newSession1. Start Webdriver session.2. Get protocol commands.3. Create webdriver monad withprotocol arguments.4. Return monad sessioninstance to caller.Create puppeteer instance.Return session instance to caller.Store instance inglobal browser variable.Set watch mode flagInitialisation successful, send runner:start message to reporter.Kick off tests in framework by calling the framework's runmethod, e.g. @wdio/mocha-framework:index run().Wait for test to finish. If watch mode keep session open.Send results to reporter instancefor processing.@wdio/cli:interface printSummary() calledTest results printed to terminalKill worker session.

Welcome! How can I help?

WebdriverIO AI Copilot