Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Appvance
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Malav Parekh
Appvance
Commits
a2419c2d
Commit
a2419c2d
authored
Aug 01, 2023
by
Malav Parekh
Committed by
Administrator
Aug 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appvance Commit [skip ci] - [adding AppvanceDemo/Scenarios/Scripts/TestCase1.ds.js]
parent
1b531d73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
TestCase1.ds.js
AppvanceDemo/Scenarios/Scripts/TestCase1.ds.js
+35
-0
No files found.
AppvanceDemo/Scenarios/Scripts/TestCase1.ds.js
0 → 100644
View file @
a2419c2d
setVariablesIfNeeded
(
'{ds}/Resources/TestDataHashDPL.csv'
,
'SyntheticDPL'
,
0
,
'en_US'
);
setDescription
(
"Navigate and Login to the application"
);
include
(
"{ds}/Resources/Login.ds"
);
setDescription
(
"Smart tags"
);
addSmartTagsLibrary
(
"{ds}/Resources/nisum.stags"
);
setDescription
(
"Click on My Account menu link"
);
click
(
span
(
any
(
"My Account"
)));
setDescription
(
"Click on address book link"
);
click
(
link
(
any
(
"Address Book"
,
"/furniture/account?page_name=address_book"
)));
setDescription
(
"Click on add new address link"
);
click
(
link
(
any
(
"Add Address"
,
"/furniture/account?page_name=address_book_process"
)));
setDescription
(
"Include synthetic DPL"
);
addSyntheticDPL
(
"{ds}/Resources/TestDataSyntheticDPL.csv"
,
0
);
setDescription
(
"Enter first name"
);
setValue
(
textbox
(
any
(
"billing_address-firstname"
,
"validate-element"
)),
$FirstName
);
setDescription
(
"Enter last name"
);
setValue
(
textbox
(
any
(
"billing_address-lastname"
)),
$LastName
);
setDescription
(
"Enter post code"
);
setValue
(
textbox
(
any
(
"billing_address-postcode"
,
"required-error validate-element"
)),
$PostCode
);
setDescription
(
"Enter street address"
);
setValue
(
textbox
(
any
(
"billing_address-street_address"
,
"required-error validate-element"
)),
$StreetAddress
);
setDescription
(
"Enter city/Town"
);
setValue
(
textbox
(
any
(
"billing_address-city"
,
"ui-autocomplete-input validate-element"
)),
$TownCity
);
setDescription
(
"Select country"
);
//setSelected(select(any("billing_address-country")),$Country);
setDescription
(
"Click on continue button"
);
click
(
stContinueButton
(
'Continue'
));
setDescription
(
"Verify address added with provided name"
);
assertExists
(
div
([
$FirstName
+
" "
+
$LastName
]));
setDescription
(
"Click on delete icon for added address"
);
click
(
span
(
"btn-del"
,
_below
(
div
([
$FirstName
+
" "
+
$LastName
]))));
setDescription
(
"Click confirm delete button"
);
click
(
span
(
any
(
"Delete"
,
"btn btn-default btn-success"
)));
setDescription
(
"Verify delete message"
);
assertExists
(
div
(
any
(
"message success"
)));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment