TT#56376 selenium: generate more unique names for domains, customers, etc.

Changed how names get generated, because it happens that we generate
something like test9123 and later we create test9 that these two names
will conflict each other when it comes to searching.

Change-Id: I5109e69c9f5b1bd8bcf49be49af535f93a8edbf2
changes/08/29508/3
Nico Schedel 6 years ago
parent c3ff0cb6ac
commit 71803048a4

@ -20,7 +20,7 @@ my $c = Selenium::Collection::Common->new(
);
$c->login_ok();
my $billingname = ("testprofile" . int(rand(10000))); #create string for checking later
my $billingname = ("billing" . int(rand(100000)) . "test"); #create string for checking later
diag("Go to Billing page");
$d->find_element('//*[@id="main-nav"]//*[contains(text(),"Settings")]')->click();

@ -30,7 +30,7 @@ if(!$pbx){
$c->login_ok();
my $domainstring = ("test" . int(rand(10000)) . ".example.org"); #create string for checking later
my $domainstring = ("domain" . int(rand(100000)) . ".example.org"); #create string for checking later
$c->create_domain($domainstring);
my @chars = ("A".."Z", "a".."z");

@ -21,7 +21,7 @@ my $c = Selenium::Collection::Common->new(
diag('Logging in');
$c->login_ok();
my $domainstring = ("test" . int(rand(10000)) . ".example.org"); #create string for checking later
my $domainstring = ("domain" . int(rand(100000)) . ".example.org"); #create string for checking later
$c->create_domain($domainstring);
diag("Check if entry exists and if the search works");

@ -21,7 +21,7 @@ my $c = Selenium::Collection::Common->new(
$c->login_ok();
my $groupname = ("testinggroup" . int(rand(10000))); #create string for checking later
my $groupname = ("group" . int(rand(100000)) . "test"); #create string for checking later
diag("Go to Peerings page");
$d->find_element('//*[@id="main-nav"]//*[contains(text(),"Settings")]')->click();

@ -21,8 +21,8 @@ my $c = Selenium::Collection::Common->new(
$c->login_ok();
my $resellername = ("test" . int(rand(10000)));
my $contractid = ("test" . int(rand(10000)));
my $resellername = ("reseller" . int(rand(100000)) . "test");
my $contractid = ("contract" . int(rand(100000)) . "test");
$c->create_reseller_contract($contractid);
$c->create_reseller($resellername, $contractid);

@ -21,10 +21,10 @@ my $c = Selenium::Collection::Common->new(
$c->login_ok();
my $resellername = ("test" . int(rand(10000)));
my $contractid = ("test" . int(rand(10000)));
my $rulesetname = ("rule" . int(rand(10000)));
my $domainstring = ("test" . int(rand(10000)) . ".example.org");
my $resellername = ("reseller" . int(rand(100000)) . "test");
my $contractid = ("contract" . int(rand(100000)) . "test");
my $rulesetname = ("rule" . int(rand(100000)) . "test");
my $domainstring = ("domain" . int(rand(100000)) . ".example.org");
$c->create_reseller_contract($contractid);
$c->create_reseller($resellername, $contractid);

Loading…
Cancel
Save