瀏覽代碼

test ABM fd3

Fernando Alonso 7 年之前
父節點
當前提交
460a581acc

文件差異過大導致無法顯示
+ 0 - 1209
behat/abm_fd3/tests/_output/BaseCest.frontpageWorks.fail.html


二進制
behat/abm_fd3/tests/_output/BaseCest.frontpageWorks.fail.png


+ 0 - 1
behat/abm_fd3/tests/_output/ScreenLogCest.frontpageWorks.fail.html

@@ -1 +0,0 @@
-<html><head></head><body></body></html>

二進制
behat/abm_fd3/tests/_output/ScreenLogCest.frontpageWorks.fail.png


二進制
behat/abm_fd3/tests/_output/debug/bc289acc022ae03b6408c42d70f0b94eda75893e/01_login/1log.png


+ 9 - 5
behat/abm_fd3/tests/acceptance.suite.yml

@@ -7,18 +7,22 @@
 actor: AcceptanceTester
 modules:
     enabled:
-#        - PhpBrowser:
-#            url: http://base.fd3.flowdat.com
+#        - PhpBrowser: 
+#           url: 'http://base.fd3.flowdat.com'
+#           host: 127.0.0.1
+#           port: 4444
+#           browser: firefox
+#           curl:
+#              CURLOPT_RETURNTRANSFER: true
         - \Helper\Acceptance
         - WebDriver:
            url: 'http://base.fd3.flowdat.com'
            host: 127.0.0.1
            port: 4444
            browser: firefox
+#           capabilities:
+#                  chromeOptions
         - VisualCeption:
             maximumDeviation: 1                                 # deviation in percent
             saveCurrentImageIfFailure: true                       # if true, VisualCeption saves the current
-#        - Codeception\Extension\Recorder:
-#           module: AngularJS
-#           delete_successful: false
 

+ 58 - 10
behat/abm_fd3/tests/acceptance/1_baseCest.php

@@ -15,14 +15,14 @@ class BaseCest
 		$I->wait('3');
 
 # ____________________ Base _____________________
-
+/*
 # Codigos de Autenticación
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/authcode/create');
 		$I->fillField('Usuario', 'iksop'."\n");
 		$I->fillField('Token', '002');
-		$I->fillField('URI de Redirección','Dirección');
+		$I->fillField('URI de Redirección','TestDirección');
 		$I->fillField('Expiración','4');
-		$I->fillField('Alcance','2m');
+		$I->fillField('Alcance','TestFernando');
 		$I->click('button.btn.btn-success');
 		$I->wait('1');
 
@@ -39,7 +39,7 @@ class BaseCest
 		$I->fillField('Usuario', 'iksop'."\n");
 		$I->fillField('Token', '002');
 		$I->fillField('Expiración','4');
-		$I->fillField('Alcance','2m');
+		$I->fillField('Alcance','TestFernando');
 		$I->click('button.btn.btn-success');
 		$I->wait('1');
 
@@ -49,31 +49,77 @@ class BaseCest
 		$I->fillField('Usuario', 'iksop'."\n");
 		$I->fillField('Token', '002');
 		$I->fillField('Expiración','4');
-		$I->fillField('Alcance','2m');
+		$I->fillField('Alcance','TestFernando');
 		$I->click('button.btn.btn-success');
 		$I->wait('1');		
 
 # Workflow
 
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
+		$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
+		$I->fillField('Nombre','FernandoTest');
+		$I->fillField('Descripción', 'FernandoTest');
+			
+#		$I->selectOption('Tipo de Workflow', 'workflow');
+		$I->fillField('Supports', 'ClientBundle\Entity\Client'."\n");
+		$I->click('button.btn.btn-success');
+		$I->wait('1');		
 
 
-# Action
+# Action __________________ NO FUNCIONA TEMPLATE ___________________
+
+		$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
+		$I->fillField('Nombre', 'FernandoTest');
+		$I->fillField('Evento', 'transition'."\n");
+		$I->fillField('Workflow', 'FernandoTest');
+		$I->fillField('Referencia', 'FernandoTest'."\t");
+$I->fillField('Clase', "\n"."\n"."\t". 'templat');
+#$I->fillField('form textarea[label=Template]', 'template');
+		$I->click('button.btn.btn-success');
+		$I->wait('5');
 
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
 
 # Alertas
+# __________ERROR EN SELECT TIPO
+
+		$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
+		$I->fillField('Título','TestFernando');
+		$I->fillField('Cuerpo','TestFernando');
+		$I->click('span.control-label__text');
+		$I->click('button.btn.btn-success');
 
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
 
 # Tipo de Alertas
+# ______________NO FUNCIONA NAMES______________
 
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
+		$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
+
+		$I->fillField('Nombre Corto','Test');
+#		$I->fillField("//input[@name='#name']",'TestFernando');
+		$I->wait('3');
+		$I->click('ins.iCheck-helper');
+		$I->fillField('textarea.form-control', 'TestFernando');
+		$I->click('button.btn.btn-success');
+		$I->wait('3');
+
+*/
 
 # Usuarios
 
 $I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
+$I->fillField('Nombre de Usuario', 'TestFernando');
+$I->fillField('E-Mail', 'TestFernando@test');
+$I->fillField('Contraseña', 'TestFernando');
+$I->fillField('Nombre', 'TestFernando');
+$I->fillField('Apellido', 'TestFernando');
+
 
+$I->fillField('Acción inicial',"\n"."\n");
+$I->fillField('Tenencias', 'Tenencia Base'."\n");
+
+$I->wait('5');
+
+
+/*
 # Grupos
 
 $I->amOnUrl('http://base.fd3.flowdat.com/admin/group/create');
@@ -158,6 +204,8 @@ $I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
 
 
 
+*/
+
 
 	}