Chat now with support
Chat with Support

Benchmark Factory for Database 8.4 - User Guide

Welcome to Benchmark Factory What's New in Benchmark Factory Additional Resources Overview of Benchmark Factory Benchmark Factory Components Licensing Getting Started - the Benchmark Factory Workflow Agents Create and Edit Connections Create and Edit Tests and Jobs
Jobs View Pane Job Wizards Quickstart: Create a New Job Edit a Job Industry Standard Benchmark Tests Capture and Replay a Workload Artificial Test for Desired Effect Scalability Tests Custom Tests Create/Delete Benchmark Objects Execute External File Test Options for Create Objects Test Options for Transactions Job Setup Options Use Global Search/Replace Save Job as BMF Script Copy Test to Replay, Mix, Goal, or Scalability Test
Benchmarks How Do I... Settings Test Results and Run Reports BFScripts Repository Troubleshooting The Benchmark Factory REST API Appendix About Us Adding Virtual Users System/Upgrade Requirements/Supported Databases Shortcut Keys

Random String

$BFCreditCard

Description:

Returns a random credit card number string.

Parameters:

N/A

Syntax:

$BFCreditCard()

Example:

$BFCreditCard() ; returns "7970 2384 8889 6599"

 

$BFRandList

Description:

 

Returns a string randomly selected from the list of items.  If no weight is specified, a weight of 1 is assumed. Each virtual user gets a different seed value to generate unique sequences.

Parameters:

 

string1-The first string in a list to return.

nWeight1-Positive integer indicating the relative weight of the first string.

string2-The second string in a list to return.

nWeight2-Positive integer indicating the relative weight of the second string.

stringN-The last string in a list to return.

nWeightN-Positive integer indicating the relative weight of the last string.

Syntax:

$BFRandList(string1[:nWeight1], string2[:nWeight2], …,stringN[:nWeightN])

Example:

$BFRandList("Red", "White":2, "Blue":5)

The value White will be returned 2 times more often than the value Red. The value Blue will be returned 5 times more often than the value Red.

 

 

$BFRandMultiList

Description:

 

Randomly selects multiple strings based on probabilities from a list.  If Weight is omitted, a value of 100 is assumed. The probability that any string is include in the returned value is determined by the value of nWeight. Each string included in the return value is separated by a comma.

Parameters:

string1-The first string in a list to return.

 

nWeight1-Positive integer indicating the relative weight of the first string. Probability should be expressed as a value between 0 and 100.  

 

string2-The second string in a list to return.

 

nWeight2-Positive integer indicating the relative weight of the second string.  Probability should be expressed as a value between 0 and 100.  

 

stringN-The last string in a list to return.

 

nWeightN-Positive integer indicating the relative weight of the last string.  Probability should be expressed as a value between 0 and 100.  

 

Syntax:

$BFRandMultiList(string1[:nWeight1], string2[:nWeight 2], …, stringN"[: nWeightN])

Example:

 

$BFRandMultiList("Red", "White":50, "Blue":25) ;

returns a value that always contains Red, contained White 50% of the transactions, and Blue 25% of the transactions.

 

 

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating