IT Community - Software Programming, Web Development and Technical Support

openSTA tips

This is a discussion on openSTA tips within the Testing Tools forums, part of the Software Quality Assurance category; SET Command This command allows a value to be assigned to an integer or character variable. The values may be ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Quality Assurance > Testing Tools

Register FAQ Members List Calendar Mark Forums Read
  #101 (permalink)  
Old 02-08-2008, 02:59 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

SET Command
This command allows a value to be assigned to an integer or character variable. The values may be any integer or character values or a function reference, but their data types must match that of the variable. The values may be derived as a result of arithmetical operations.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #102 (permalink)  
Old 02-08-2008, 02:59 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

EXTRACT Character Function
This a Character Function and can only be referenced within a SET command. It returns the portion of the string identified by the specified offset and length.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #103 (permalink)  
Old 02-08-2008, 03:01 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

CANCEL ON Command
This command terminates the automatic trapping of Script errors, which is enabled with the ON ERROR command. Any Script errors encountered will cause the thread to be aborted.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #104 (permalink)  
Old 02-08-2008, 03:02 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

WAIT Command
This command suspends the Script execution for the specified time interval. The unit of the specified time interval is either seconds or milliseconds depending upon the value of the ENVIRONMENT statement WAIT UNIT.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #105 (permalink)  
Old 02-08-2008, 03:05 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

ENVIRONMENT Section
The purpose of the ENVIRONMENT section is to define attributes specific to the Script.
The ENVIRONMENT section of an SCL Script is introduced by the mandatory ENVIRONMENT command. Only comments and whitespace may come before the ENVIRONMENT command in a Script source file. The ENVIRONMENT section is closed by the start of a DEFINITIONS(optional) or CODE section.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #106 (permalink)  
Old 02-15-2008, 06:00 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

DEFINITIONS Section
The DEFINITIONS section of an SCL Script is the part of the source code where the Scripts variables, timers, and constants used by the Script are defined. The section is optional and is specified by a DEFINITIONS command immediately after the ENVIRONMENT section. The DEFINITIONS section is ended by the start of the CODE section.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #107 (permalink)  
Old 02-15-2008, 06:02 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

Broken and Useless SCL Features
This section is here to document those features of SCL which are broken or just useless
within OpenSTA. SCL is a relatively old language, it is much older than OpenSTA itself
and with this it has inherited some baggage. Although OpenSTAs SCL is considerably different than the earlier SCLs (in implementation and features) it still shares a reasonable amount with its ancestors; some of these things don't make a whole lot of sense in OpenSTA or were just never finished properly.
Within the ENVIRONMENT section there are a couple of little gotchas that technically work but don't seem to make any sense. The DESCRIPTION is mandatory, that is, if you delete it then your Script will not compile. You can provide an empty description string but you can't delete the command, this doesn't make much sense. The MODE HTTP could probably also be defaulted as OpenSTA scripts are always used for HTTP.
The command and control characters played much more of a part in the previous generations of SCL. It was possible to change what these characters were and all commands were actually introduced by the command character. This fact means that the documentation and use of these characters is perhaps a little weird. The ability to pass data back from called sub-scripts is not present. Any variables used as parameters are not updated on return and the variable provided in the RETURNING clause seems to be cleared rather than updated.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #108 (permalink)  
Old 02-15-2008, 06:03 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

Variable Options
Additional attributes may be assigned to a variable using option clauses. Variable options follow the value definitions (if present), and are introduced by a comma. There are three types of option clause available: the first defines the scope of the variable; the second is used with variables with associated values, to define how random values are to be generated, if required; the third is used with variables that are defined as a parameter for the Script.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #109 (permalink)  
Old 02-15-2008, 06:09 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

NEXT Command
This command loads a variable with the next sequential value from a set of values. This could be either a list or a range associated with that variable, or from a file associated with the variable.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #110 (permalink)  
Old 02-15-2008, 06:10 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

RESET Command
This command resets the value pointer for a variable to the first value in the associated value set. This could be either a list or a range associated with that variable, or from a file associated with the variable. In the case of a repeatable random variable, the variable's seed may be reset to a specified or defaulted value.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #111 (permalink)  
Old 02-15-2008, 06:11 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

LENGTH Integer Function
This command is an Integer Function and can only be referenced within a SET command. It returns the length of the source string.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #112 (permalink)  
Old 02-15-2008, 06:13 AM
senthilkannan senthilkannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
senthilkannan is on a distinguished road
Default Re: openSTA tips

LOCATE Integer Function
This command is an Integer Function and can only be referenced within a SET command. It returns an integer value, corresponding to the offset of the specified substring in the source string.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #113 (permalink)  
Old 07-22-2008, 11:40 PM
Daccara Daccara is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 8
Daccara is on a distinguished road
Default Re: openSTA tips

Resize The Results Window
1. Move your cursor over part of the window edge.
2. Click and drag, then drop the border in the required position.
__________________
web design
Free Templates
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
openSTA and end of file character cindrella Software Testing 0 02-29-2008 11:12 AM


All times are GMT -7. The time now is 05:38 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0