Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Question on 'none' verdict

Question on 'none' verdict 16 Jan 2003 18:18 #6336

Hi,

What is advantage of 'setverdict(none)' use or when this command may/should be used?
/Assuming test component verdict was already initialized to value 'none'/.

BR,
Mariusz Kupiec
The administrator has disabled public write access.

Question on 'none' verdict 17 Jan 2003 13:31 #6349

Hi,

from my point of view, setverdict(none) is never useful. If the local verdict is none then it will not be changed. If it is not none, then it will not be changed either. setverdict(none) is always a NOOP. I don't think though, that it should be disallowed.

BR

Stephan


Original Message
From: ext Mariusz Kupiec [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 16. January 2003 19:19
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Question on 'none' verdict


Hi,

What is advantage of 'setverdict(none)' use or when this command may/should be used?
/Assuming test component verdict was already initialized to value 'none'/.

BR,
Mariusz Kupiec
Firmowe pieniadze na 5.64% efektywnego porocentowania.
mBIZNES Konto. >>> link.interia.pl/f16be
The administrator has disabled public write access.

Question on 'none' verdict 17 Jan 2003 15:12 #6351

  • Fr
  • Fr's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,

In my opinion a verdict(none) means that the test has been badly coded...

A test coder
Frederique Aurouet


Original Message
From: Stephen TOBIES [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 17 January 2003 14:31
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Question on 'none' verdict


Hi,

from my point of view, setverdict(none) is never useful. If the local verdict is none then it will not be changed. If it is not none, then it will not be changed either. setverdict(none) is always a NOOP. I don't think though, that it should be disallowed.

BR

Stephan


Original Message
From: ext Mariusz Kupiec [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 16. January 2003 19:19
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Question on 'none' verdict


Hi,

What is advantage of 'setverdict(none)' use or when this command may/should be used?
/Assuming test component verdict was already initialized to value 'none'/.

BR,
Mariusz Kupiec
Firmowe pieniadze na 5.64% efektywnego porocentowania.
mBIZNES Konto. >>> link.interia.pl/f16be
The administrator has disabled public write access.

Question on 'none' verdict 17 Jan 2003 15:51 #6352

Hi all!

I reckon the use of setverdict(none) is there to enhance that if "no verdict
has been assigned" at least the test executor/developer should be aware of
that. I don't think it should be disallowed either but I don't fully agree
that it is bad coding... I would say preemptive coding...;-)

Enjoy the weekend

BR

/Stefan

Original Message
From: Frédérique Aurouet [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: Friday, January 17, 2003 4:12 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Question on 'none' verdict

Hi,

In my opinion a verdict(none) means that the test has been badly coded...

A test coder
Frederique Aurouet


Original Message
From: Stephen TOBIES [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 17 January 2003 14:31
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Question on 'none' verdict


Hi,

from my point of view, setverdict(none) is never useful. If the local
verdict is none then it will not be changed. If it is not none, then it will
not be changed either. setverdict(none) is always a NOOP. I don't think
though, that it should be disallowed.

BR

Stephan


Original Message
From: ext Mariusz Kupiec [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 16. January 2003 19:19
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Question on 'none' verdict


Hi,

What is advantage of 'setverdict(none)' use or when this command may/should
be used?
/Assuming test component verdict was already initialized to value 'none'/.

BR,
Mariusz Kupiec
Firmowe pieniadze na 5.64% efektywnego porocentowania.
mBIZNES Konto. >>> link.interia.pl/f16be
The administrator has disabled public write access.

Question on 'none' verdict 18 Jan 2003 01:41 #6367

  • Syntax
  • Syntax's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi!
I think the explicit use of "setverdict(none)" has no advantage. But "setverdict(a_verdict_var)" is useful, where maybe the value of the "a_verdict_var" is "none". So, I think the TTCN-3 analyzer should warn the explicit use of "setverdict(none)", but the executor should accept setting any value to verdict.


Original Message
From: "Stefan Olofsson" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
To: <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent: Friday, January 17, 2003 11:51 PM
Subject: Re: Question on 'none' verdict


Hi all!

I reckon the use of setverdict(none) is there to enhance that if "no verdict
has been assigned" at least the test executor/developer should be aware of
that. I don't think it should be disallowed either but I don't fully agree
that it is bad coding... I would say preemptive coding...;-)

Enjoy the weekend

BR

/Stefan

Original Message
From: Frédérique Aurouet [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: Friday, January 17, 2003 4:12 PM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Question on 'none' verdict

Hi,

In my opinion a verdict(none) means that the test has been badly coded...

A test coder
Frederique Aurouet


Original Message
From: Stephen TOBIES [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 17 January 2003 14:31
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Question on 'none' verdict


Hi,

from my point of view, setverdict(none) is never useful. If the local
verdict is none then it will not be changed. If it is not none, then it will
not be changed either. setverdict(none) is always a NOOP. I don't think
though, that it should be disallowed.

BR

Stephan


Original Message
From: ext Mariusz Kupiec [This email address is being protected from spambots. You need JavaScript enabled to view it.]
Sent: 16. January 2003 19:19
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Question on 'none' verdict


Hi,

What is advantage of 'setverdict(none)' use or when this command may/should
be used?
/Assuming test component verdict was already initialized to value 'none'/.

BR,
Mariusz Kupiec
Firmowe pieniadze na 5.64% efektywnego porocentowania.
mBIZNES Konto. >>> link.interia.pl/f16be
The administrator has disabled public write access.

Question on 'none' verdict 18 Jan 2003 14:18 #6370

Hi,

the example of 'syntay' was the main reason for allowing
'setverdict(none)'.

Whereas it is easy to check statically 'setverdict(none)',
the value of a variable 'a_verdict_var' which is used in a
'setverdict(a_verdict_var)' can in general ony be checked
dynamically.

By disallowing 'setverdict(none)' we would also have to
disallow 'setverdict(a_verdict_var)' if 'a_verdict_var == none'.
This would require a lot runtime-checks.

Since 'setverdict(none)' has no effect, we believed that it
is more efficient to allow it instead of forcing further
runtime-checks.

Regards
Jens



Syntax schrieb:
>
> Hi!
> I think the explicit use of "setverdict(none)" has no advantage. But
"setverdict(a_verdict_var)" is useful, where maybe the value of the
"a_verdict_var" is "none". So, I think the TTCN-3 analyzer should warn the
explicit use of "setverdict(none)", but the executor should accept setting any
value to verdict.
>
>
Original Message
> From: "Stefan Olofsson" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
> To: <This email address is being protected from spambots. You need JavaScript enabled to view it.>
> Sent: Friday, January 17, 2003 11:51 PM
> Subject: Re: Question on 'none' verdict
>
> Hi all!
>
> I reckon the use of setverdict(none) is there to enhance that if "no verdict
> has been assigned" at least the test executor/developer should be aware of
> that. I don't think it should be disallowed either but I don't fully agree
> that it is bad coding... I would say preemptive coding...;-)
>
> Enjoy the weekend
>
> BR
>
> /Stefan
>
>
Original Message
> From: Frédérique Aurouet [This email address is being protected from spambots. You need JavaScript enabled to view it.]
> Sent: Friday, January 17, 2003 4:12 PM
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Re: Question on 'none' verdict
>
> Hi,
>
> In my opinion a verdict(none) means that the test has been badly coded...
>
> A test coder
> Frederique Aurouet
>
>
Original Message
> From: Stephen TOBIES [This email address is being protected from spambots. You need JavaScript enabled to view it.]
> Sent: 17 January 2003 14:31
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Re: Question on 'none' verdict
>
> Hi,
>
> from my point of view, setverdict(none) is never useful. If the local
> verdict is none then it will not be changed. If it is not none, then it will
> not be changed either. setverdict(none) is always a NOOP. I don't think
> though, that it should be disallowed.
>
> BR
>
> Stephan
>
>
>
Original Message
> From: ext Mariusz Kupiec [This email address is being protected from spambots. You need JavaScript enabled to view it.]
> Sent: 16. January 2003 19:19
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Question on 'none' verdict
>
> Hi,
>
> What is advantage of 'setverdict(none)' use or when this command may/should
> be used?
> /Assuming test component verdict was already initialized to value 'none'/.
>
> BR,
> Mariusz Kupiec
>
> Firmowe pieniadze na 5.64% efektywnego porocentowania.
> mBIZNES Konto. >>> link.interia.pl/f16be

--

======================================================================
Dr. Jens Grabowski
Institute for Telematics phone: +49 451 500 3723
University of Luebeck fax: +49 451 500 3722
Ratzeburger Allee 160 eMail: This email address is being protected from spambots. You need JavaScript enabled to view it.
D-23538 Luebeck or This email address is being protected from spambots. You need JavaScript enabled to view it.
(Germany) WWW: www.itm.mu-luebeck.de
======================================================================
The administrator has disabled public write access.

Question on 'none' verdict 19 Jan 2003 20:03 #6374

Hi,

Thanks for good explanation and confirmation of Mr Syntax example.
What about this example:

Example:
var verdicttype a_verdict_var;
a_verdict_var := error;
setverdict(a_verdict_var);

An 'error' verdict was not produced by getverdict operation because it is
impossible according 25.2.1. I hope it is legally produced, user made
'error' verdict, assigned in a similar way as it is allowed for 'none'
verdict. It does not violate static semantics:

513. SetLocalVerdict ::= SetVerdictKeyword "(" SingleExpression ")"

/* STATIC SEMANTICS -SingleExpression must resolve to a value of type
verdict */


/* STATIC SEMANTICS - the SetLocalVerdict shall not be used to assign the
Value error */


The only protection against this kind of gap in specification seems to be
the sentence from 25.2.1: 'The error verdict is special in that it is set by
the test system'.
Is it enough? In the example I have only initialized the variable and put it
as an argument for system function. It is the system, which does all the
dirty job with setting what is in variable ;-)
Should run-time error / dynamic test case error be generated in this
example?

BR,
Mariusz Kupiec


Original Message
From: "Jens Grabowski" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
To: <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent: Saturday, January 18, 2003 3:18 PM
Subject: Re: Question on 'none' verdict


Hi,

the example of 'syntay' was the main reason for allowing
'setverdict(none)'.

Whereas it is easy to check statically 'setverdict(none)',
the value of a variable 'a_verdict_var' which is used in a
'setverdict(a_verdict_var)' can in general ony be checked
dynamically.

By disallowing 'setverdict(none)' we would also have to
disallow 'setverdict(a_verdict_var)' if 'a_verdict_var == none'.
This would require a lot runtime-checks.

Since 'setverdict(none)' has no effect, we believed that it
is more efficient to allow it instead of forcing further
runtime-checks.

Regards
Jens


Poczta nowych mozliwosci >>> link.interia.pl/f16bc
The administrator has disabled public write access.

Question on 'none' verdict 20 Jan 2003 07:05 #6375

Hi,

> Example:
> var verdicttype a_verdict_var;
> a_verdict_var := error;
> setverdict(a_verdict_var);

yes, this usage of the 'error' verdict is something which has not
been considered. At the moment I don't know how to resolve this
without runtime check. Disallowing 'error' on the right side of
assignments or restricting the usage of 'error' to the control
part only seem not to be correct solutions.

Regards
Jens

Mariusz Kupiec schrieb:
>
> Hi,
>
> Thanks for good explanation and confirmation of Mr Syntax example.
> What about this example:
>
> Example:
> var verdicttype a_verdict_var;
> a_verdict_var := error;
> setverdict(a_verdict_var);
>
> An 'error' verdict was not produced by getverdict operation because it is
> impossible according 25.2.1. I hope it is legally produced, user made
> 'error' verdict, assigned in a similar way as it is allowed for 'none'
> verdict. It does not violate static semantics:
>
> 513. SetLocalVerdict ::= SetVerdictKeyword "(" SingleExpression ")"
>
> /* STATIC SEMANTICS -SingleExpression must resolve to a value of type
> verdict */
>
> /* STATIC SEMANTICS - the SetLocalVerdict shall not be used to assign the
> Value error */
>
> The only protection against this kind of gap in specification seems to be
> the sentence from 25.2.1: 'The error verdict is special in that it is set by
> the test system'.
> Is it enough? In the example I have only initialized the variable and put it
> as an argument for system function. It is the system, which does all the
> dirty job with setting what is in variable ;-)
> Should run-time error / dynamic test case error be generated in this
> example?
>
> BR,
> Mariusz Kupiec
>
>
Original Message
> From: "Jens Grabowski" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
> To: <This email address is being protected from spambots. You need JavaScript enabled to view it.>
> Sent: Saturday, January 18, 2003 3:18 PM
> Subject: Re: Question on 'none' verdict
>
> Hi,
>
> the example of 'syntay' was the main reason for allowing
> 'setverdict(none)'.
>
> Whereas it is easy to check statically 'setverdict(none)',
> the value of a variable 'a_verdict_var' which is used in a
> 'setverdict(a_verdict_var)' can in general ony be checked
> dynamically.
>
> By disallowing 'setverdict(none)' we would also have to
> disallow 'setverdict(a_verdict_var)' if 'a_verdict_var == none'.
> This would require a lot runtime-checks.
>
> Since 'setverdict(none)' has no effect, we believed that it
> is more efficient to allow it instead of forcing further
> runtime-checks.
>
> Regards
> Jens
>
>
> Poczta nowych mozliwosci >>> link.interia.pl/f16bc

--

======================================================================
Dr. Jens Grabowski
Institute for Telematics phone: +49 451 500 3723
University of Luebeck fax: +49 451 500 3722
Ratzeburger Allee 160 eMail: This email address is being protected from spambots. You need JavaScript enabled to view it.
D-23538 Luebeck or This email address is being protected from spambots. You need JavaScript enabled to view it.
(Germany) WWW: www.itm.mu-luebeck.de
======================================================================
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin