Selenium php单元。错误未定义变量

时间:2016-10-14 04:56:06

标签: php selenium selenium-webdriver phpunit

任何人都可以帮助我。

class myClass_DataProviderAddInventory extends MinkTestCase {
  private $_addlotid = array(
    array( 'camera','Nikon'),
    array( 'Dslr','canon')  
  );

   public function SetValueForUpdateParcel() {
    return $this->_addlotid;
    }

/**
 * @dataProvider SetValueForUpdateParcel
 */
    public function testaddinvenotry($newValue,$oldvalue) {
    $this->waitForPageToLoad(1000);
    $this->assertElementSetWithValue_W('css',#item_title','#cid', $newvalue,$oldvalue);

    Selenium_Helper::clickInventorySubmitButton($this);
    Selenium_Helper::clickOkButton($this);
    Selenium_Helper::isProductLinkExists($this);
    Selenium_Helper::isAddLinkExists($this);

    $this->getSession()->wait(500);
  }
}

0 个答案:

没有答案