Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #21697

Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found

From Simonex <simo@sumo.it>
Newsgroups it.comp.www.php
Subject Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found
Date 2017-09-06 19:13 +0200
Organization Aioe.org NNTP Server
Message-ID <oopab2$1r8p$1@gioia.aioe.org> (permalink)
References (2 earlier) <3154f934-9728-4555-9a06-b286bc989c61@googlegroups.com> <oom13j$1u0o$1@gioia.aioe.org> <f183diFkqg3U1@mid.individual.net> <oommsi$19ev$1@gioia.aioe.org> <f19sl1F2gp6U1@mid.individual.net>

Show all headers | View raw


Il 06/09/2017 11:15, Alessandro Pellizzari ha scritto:
>> In genere cosa si usa? Phantomjs?
> 
> Di solito lascio quel lavoro ai frontender,

Frontender, cioè un gruppo utenti (o applicazioni) per testare 
l'interfaccia utente?

> se posso, ma sì, so che 
> usavano PhantomJS, almeno per un po'.
> Poi ci eravamo messi a scrivere un wrapper attorno a CasperJS e 
> l'abbiamo messo open source:
> 
> https://github.com/DiceHoldingsInc/casperjs-php-driver
> 
> (non ci ho lavorato, quindi non ti so dire molto)

<?php //tesr.php
require  'vendor/autoload.php';

$driver = new CasperJs\Driver();
$output = $driver->start('http://someurl.com')
     ->click('123')
     ->run();

$ php test.php

...non succede niente.
Ma cmq a cosa serve questo wrapper?

Comunque ho provato anche casperjs:

$ cat casper.js
//casper.js
var casper = require('casper').create();
casper.start('http://casperjs.org/');

casper.then(function() {
     this.assertTitle('casper');
     this.echo('First Page: ' + this.getTitle());
});

casper.thenOpen('http://phantomjs.org', function() {
     this.echo('Second Page: ' + this.getTitle());
     this.clickLabel('DOCUMENTATION');
});


casper.run();

$ casperjs casper.js
TypeError: undefined is not a function (evaluating 
'this.assertTitle('casper')')
Second Page: PhantomJS | PhantomJS
CasperError: Cannot dispatch mousedown event on nonexistent selector: 
xpath selector: //*[text()="DOCUMENTATION"]

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-08-18 14:30 +0200
  Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-04 11:44 +0200
    Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-04 11:24 -0700
      Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 13:17 +0200
        Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 05:26 -0700
          Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 15:04 +0200
            Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 06:25 -0700
        Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-05 17:58 +0100
          Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-05 19:28 +0200
            Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found fmassei@gmail.com - 2017-09-05 17:14 -0700
            Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-06 10:15 +0100
              Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-06 19:13 +0200
                Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-07 10:12 +0100
                Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Simonex <simo@sumo.it> - 2017-09-07 16:49 +0200
                Re: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found Alessandro Pellizzari <shuriken@amiran.it> - 2017-09-07 16:38 +0100

csiph-web