-
Notifications
You must be signed in to change notification settings - Fork 1
/
Prueba.php
43 lines (35 loc) · 1.03 KB
/
Prueba.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
include 'pruebaConexion.php';
include 'pruebaHistorialBusqueda.php';
class Conexions extends PHPUnit_Extensions_SeleniumTestCase
{
var $conn;
protected $captureScreenshotOnFailure = TRUE;
protected $screenshotPath = 'C:\xampp\htdocs\Analisis\screenshots';
protected $screenshotUrl = 'http://localhost/screenshots';
protected function setUp()
{
$this->setBrowser('*firefox');
$this->setBrowserUrl('http://localhost/index.php');
$this->setPort(8887);
}
public function tearDown(){ }
public function testConexionBD()
{ $this->conn=Conexion();
$this->assertTrue($this->conn==True);
}
public function testConexionBD2()
{ $this->conn=ConexionBD("catalogo");
$this->assertTrue($this->conn==True);
}
public function testbusquedaHistorial()
{ $n=pruebaHistorialBusqueda();
$this->assertGreaterThanOrEqual(0,$n);
}
public function testinsertaHistorial()
{ $this->conn=ConexionBD("catalogo");
$n=ihistorialBusqueda(1,"nuevo",$this->conn);
$this->assertTrue($n==True);
}
}
?>