Hello,
I have created my first test today! In my app I save a draft Requisition. After saving it I'm presented it's new ID in two pays.
In the url: https://sub.domain.org/Requisition/RequisitionView/2813
And also on the page I have this html element:
In the both cases I need to do some "trimming" as it has extra text, for example:
So.. I need to have this ID, in either a text file or in memory, because I have 10+ other tests that will rely on this.
I'm assuming that I need to:
Thanks!
I have created my first test today! In my app I save a draft Requisition. After saving it I'm presented it's new ID in two pays.
In the url: https://sub.domain.org/Requisition/RequisitionView/2813
And also on the page I have this html element:
<
span
class
=
"requisitionTitleText"
>Requisition # 2813:<
span
class
=
"requisitionDetails"
> tt 574 6</
span
></
span
>
In the both cases I need to do some "trimming" as it has extra text, for example:
string
newReq =
"Requisition # 2813:"
newReq = newReq.Replace(
"Requisition # "
,
""
);
newReq = newReq.Replace(
":"
,
""
);
So.. I need to have this ID, in either a text file or in memory, because I have 10+ other tests that will rely on this.
I'm assuming that I need to:
- save the id to a local datasource
How do I do this? - in later tests, reference it like in this article
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/local-data-driven-test.aspx
Thanks!