草庐IT

webdriver-profile

全部标签

php - 使用 php-webdriver-bindings-0.9.0 在 selenium 中执行 javascript

我试图在我的selenium测试套件中执行JavaScript,但它不工作,而且我没有收到任何错误反馈。它优雅地接受我输入的任何内容作为执行函数的参数并通过测试。以下是我尝试过的组合:classTestingStuffextendsPHPUnit_Framework_TestCase{protectedfunctionsetUp(){$this->webdriver=newWebDriver("localhost",4444);$this->webdriver->connect("firefox");}protectedfunctiontearDown(){$this->webdriv

php - 无法打开输入文件 :/Users/me/composer. phar - 运行 source ~/.bash_profile.save 后

这让我很头疼。简单地尝试安装laravel4。所以,composer安装的很好,它运行正常。问题是当我尝试安装laravel时收到此错误:-laravel/frameworkv4.2.9requiresphp>=5.4.0->nomatchingpackagefound.所以,我检查了终端正在使用和使用的PHP版本:whichphp给我usr/local/bin位置,然后php-v显示它是5.3php。因此,按照一些说明,我编辑了.bash_profile.save,现在的路径是:aliascomposer='php~/composer.phar'exportPATH=/Applica

php - Symfony2 : How to disable profiler entirely?

即使我从所有config*.yml文件中删除web_profiler...我越来越RuntimeException:YouneedtoenableeithertheSQLite3orPDO_SQLiteextensionfortheprofilertorunproperly.我只是不想在我的系统上安装sqlite,而且我找不到如何完全关闭分析器...有什么建议吗?UPD:在FrameworkExtension.php中评论if(isset($config['profiler'])){$this->registerProfilerConfiguration($config['profil

php - Behat Mink webdriver session 在套件中的每个功能之后被销毁

我正在尝试使用behatBDD和Mink以及用于php的seleniumwebdriver来自动化sugarcrm功能。我已经正确安装了它们并且能够一起运行behat和mink。例如检查sugarcrm上的登录作为一项功能。现在的问题是当我创建两个功能文件时说login.feature和setup.feature。Behat成功地在浏览器中自动执行登录过程,但一旦它切换到setup.feature(需要从以前的功能维护登录session),它就会破坏session并返回到登录窗口。因此,第二个功能测试总是失败。如何为我的功能套件中的每个功能维护session?只是想告诉你们,我也在一个

php - 如何在使用 PHPUnit、Selenium 和 php-webdriver 进行测试后保持登录状态

我正在尝试使用它们之间的共享session运行多个测试,从登录开始。'chrome','sessionStrategy'=>'shared');publicfunctionsetUp(){$this->webDriver=RemoteWebDriver::create($this->host,$this->browser);}publicfunctiontearDown(){$this->webDriver->quit();}我的第一个测试是登录,效果很好:publicfunctiontestLogin(){$this->webDriver->get('http://localhost

php - 使用 php webdriver 从 Selenium 获取 console.log

我正在尝试对我们的一些AMP页面运行集成测试,看看它们是否有效。如果您将#development=1附加到URL并将结果放入console.log,则AMP会运行验证。我需要能够读取console.log来检查这一点。这是我目前所拥有的:$caps=DesiredCapabilities::firefox();$caps->setCapability('loggingPrefs',array('browser'=>'ALL'));//connecttoselenium$webdriver=RemoteWebDriver::create('http://127.0.0.1:4444/wd

php - 在 webdriver 中呈现 HTML 字符串或本地 html 文件

我想通过facebook/php-webdriver呈现本地HTML文件。例如:$host='http://phantomjs:8910/wd/hub';//webdriverserverisonanotherhost$driver=RemoteWebDriver::create($this->host,DesiredCapabilities::phantomjs());$driver->get('file:///tmp/test.html');但是无法加载本地文件。如果我可以渲染HTML字符串就太好了:$text=TestHTMLTESTBODYEOT;$driver=RemoteW

php - Codeception vs peridot + php-webdriver?

我想为我公司的旧版PHP应用实现一些基本的验收测试。SeleniumWebDriver看起来最合适,但我需要有关使用哪种测试框架的建议。选项1我们的单元测试写在PeridotPHP中,我知道WebDriver可以通过php-webdriver从PHP运行.因此,看起来我应该能够编写一套使用php-webdriverAPI与网站交互的Peridot测试。它已为PHPUnit完成,乍一看我不明白为什么Peridot不能做同样的事情(吞咽)。选项2或者,我也知道Codeception框架与WebDriver集成良好。这样做的好处是Codeception负责设置WebDriver服务器和加载测

php - 如何实现像 www.example.com/username 这样的 url 以重定向到 www.example.com/user/profile.php?uid=10?

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭9年前。Improvethisquestion在我的网站上,可以通过urlwww.example.com/user/profile.php?uid=3访问用户配置文件我想让用户通过简单地请求www.example.com/username来更轻松地访问他们的个人资料每个用户都有一个不能更改的用户名。我怎样才能做到这一点?Hereismycurrent.htaccessfileOptions+FollowSymLinks-MultiViews

php - zend 框架 : "A project profile was not found" zf version 1. 11.7

我正在尝试在zend框架中开发一个项目。我已经使用命令行创建了一个项目gil,然后我在命令行中进入项目目录并尝试创建一个Action,但出现如下错误。我使用的是WindowsXP和XAMPP,我的Zend框架版本是1.11.7。C:\xampp\htdocs\zframework12>zfcreateprojectgilCreatingprojectatC:/xampp/htdocs/zframework12/gilC:\xampp\htdocs\zframework12>cdgilC:\xampp\htdocs\zframework12\gil>zfcreateactionaddin