Assert Condition fired out of order?

158 views
Skip to first unread message

dmyers

unread,
Jan 24, 2014, 8:33:40 PM1/24/14
to fak...@googlegroups.com
I inserted a Assertion Handler which calls a Applescript

do shell script "ut -f " & URL of document 1

Lower down the Assert Condition is fired off

Then after that I run another applescript

do shell script "ut -t Click the Log Out Button " & URL of document 1

but in my output which the ut shellscript captures the Assertion Handler fires after the "Click the Log Out Button"

Times are in microseconds 

1390613117.6742 Start Up

1390613122.7029 Bring Up the Login Page http://ci_unit_tests.vcap.me/setup.php

1390613126.1219 Put in a Incorrect Email Address http://ci_unit_tests.vcap.me/auth

1390613134.2232 Click the Log Out Button http://ci_unit_tests.vcap.me/admin/dashboard

1390613134.279 *Failed http://ci_unit_tests.vcap.me/admin/dashboard

1390613137.6697 Finished

my script delay is set at 1.0 second between actions

See attached screen grab
Screen Shot 2014-01-24 at 8.19.25 PM.png

Andrey

unread,
Feb 9, 2014, 10:16:30 AM2/9/14
to fak...@googlegroups.com
Hi Derek! Tell me how you record errors Push Error Handler? 
JS not record errors locally. Txt by the fact that it is part of Safety browser-pc. I did it on Bras JS-PHP on my hosting.

index.php on hosting my website:

<?php header('Content-Type: application/x-javascript; charset=utf8');
   
   $dat_wr=date('d.m.Y H:i');
   
   $err_msg=( isset($_REQUEST['err_msg']) )?$_REQUEST['err_msg']:'NO err_msg';
   $err_num=( isset($_REQUEST['err_num']) )?$_REQUEST['err_num']:'NO err_num';
   
   $str_read=$dat_wr.': '.$err_msg.', Error num: '.$err_num.'\r\n' ;
   
   $f_op = fopen('fake_err.txt', 'a');
   $f_wr = fwrite($f_op, $str_read);
   fclose($f_op);
   
   return false;
?>


and Push Error Handler on JS:

var errMsg=fake.errorMessage;
var errNum=fake.errorNumber;

alert (errMsg);

var jsonDat={
   err_msg: errMsg,
   err_num: errNum
}

$.getJSON("http://mysite.com/floder/index.php", jsonDat, function(res){
   alert ('data server response');
});


I want to know who of my names fakeworkflow mistaken. How to get it in the local path JS?



суббота, 25 января 2014 г., 5:33:40 UTC+4 пользователь dmyers написал:

dmyers

unread,
Feb 12, 2014, 8:53:54 AM2/12/14
to fak...@googlegroups.com
Hi, Much like your jQuery $.getJSON "POST" I wrote a PHP Command line Script Named "ut" you can see I call it from fake with the "do shell script" Applescript command  "ut -t message..."

So on each applescript call "should" happen in sequence but, it's not...

Don Myers
Reply all
Reply to author
Forward
0 new messages