Skip to content

DigitalProducts/codeception-module-remoteupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Codeception Remote File Attachment Helper

This module helps to upload files when using webdriver via remote connection when using codeception.

Getting started

Bootstrap

Just copy the file to your project and add it to your bootstrap file:

include_once "/path/to/module/AttachFileRemoteHelper.php";

Configuration

After editing your bootstrap file you have to update your test suite configuration

modules:
    enabled: [WebDriver, AttachFileRemoteHelper]

No additional configuration has to be made. Just add the AttachFileRemoteHelper.

Building the WebGuy

After changing your configuration you have to re-build the web guy.

php codecept.phar build

Usage

Once the module is actived you are able to use the new method attachFileRemote the same way you are using the native codeception/webdriver method attachFile.

<?php

class CreateCommentCest
{
    public function testRemoteFileUpload (WebGuy $I, $scenario)
    {
        $I->amOnPage("/html/formulare/anzeige/input_file.htm");
        $I->attachFileRemote("Datei", "image.png");
    }
}

About

Module for handling remote files in codeception

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages