External Counter

From SMTX Wiki
Jump to navigation Jump to search

Create a step of the type 'Http Request'.

Method = GET


When this step is started, a link is called, that will add 1 to the last number.

In the link, you refer to a 'type', no need to keep a seperate list of types.


The links below carry 'test' as type. replace http://sssp/ with the URL to your SSP installation


To fetch the number: http://ssp/AutoIncrement/GetNumber.aspx?type=test&length=10

- this will give the next number of the type 'test', with a length of 10 characters.


To set the starting number to 2000 :

http://ssp/AutoIncrement/Reseed.aspx?type=test&nextnr=2000


To reset the counter to 1 : http://ssp/AutoIncrement/Reseed.aspx?type=test&nr=1