Included page: .FrontPage.QA.Archive.API.EYAPI.Recipients.SetUp (edit)
Contents:
import |
TBOT.Generic.CryptoFix |
import |
TBOT.Generic.RESTFixtures |
Setup
ddt: TBOT.Generic.Database.SetUp | |
key | value |
aud | api.onesourcetax.com |
iss | urn:tr:onesource:auth:api:uid:taxprep-ey-1 |
sub | 8l3L84Nfb6YMgxbWuqFio1pJ8N7wmvG8 |
jti | 154feda0-546d-405f-9e26-434060351242 |
Generate a Client Assertion Token
CryptoFixture | |||
PrivateKeyPath | tokenexpmin | JWTTokenfilepath | makeJWTRequest? |
\\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\PrivateKey.txt | 3 | \\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\ClientAssertion.txt | $clientasserttoken1= |
Generate Payload for getting Bearer Token
ddt:TBOT.Generic.Database.KeywordFixture | |||||
StringTemplate | clientID | scopes | clientassertToken | ReplaceEnclosure | ReplaceString? |
\\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\GenerateBearerToken-Template.txt | 8l3L84Nfb6YMgxbWuqFio1pJ8N7wmvG8 | "urn:tr:onesource:auth:account:VKL","urn:tr:onesource:auth:api:trusttax" | $clientasserttoken1 | ++-- | $payloadbearertkn1= |
Get the Bearer Token
ddt:RestServiceFixture | https://api-qa.onesourcetax.com/oauth2/v1/token | application/x-www-form-urlencoded | post |
payLoad | MakeRequest? | RESPONSEBODY? | |
$payloadbearertkn1 | OK | $bearertoken01= |
parseJSON | |||
comments | selector | file | assertjson? |
Token | $.token | $bearertoken01 | $Token01= |
import |
TBOT.Generic.Database |
ddt: SetUp | |
key | value |
TargetDirectory | \\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\Recipients\responses\ |
selector | $.value |
file | \\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\Recipients\responses\RecipientsFieldsValidation-result.json |
Header template creation
ddt:TBOT.Generic.Database.KeywordFixture | |||
StringTemplate | Token | ReplaceEnclosure | ReplaceString? |
Authorization=Bearer ++--Token++-- | $Token01 | ++-- | $Header= |
import |
TBOT.Generic.RESTFixtures |
Excel Data Files Load
Exceltemplating | ||||
ExcelDataFolder | ExcelDataFile | sheetName | TemplateFile | initialize? |
\\C605ZPUOTTFS2.tztst.loc\_QATeam\Excel\Recipients | RecipientsAPIData.XLSX | Data | \\C605ZPUOTTFS2.tztst.loc\_QATeam\Excel\Recipients\RecipientsFullTemplate.json | /__VOID__/ |
ddt:TBOT.Generic.RESTFixtures.RestServiceFixtureExcelTemplate | https:// | /trust-tax/v1/pans/5007/accounts/TESTAPI/recipientsapplication/json | put | |||||
TC# | DataID | headers | targetfilename | ReturnPayload | targetfilename? | GENERATEPAYLOADEXCEL? | MakeRequest? | RESPONSETIME? |
detail.name1 is accepted when it's 44 chars length | 1 | $Header | RecipientsData1.json | FALSE | $file1= | true | Accepted | |
detail.name1 is accepted when it's 45(max) chars length | 2 | $Header | RecipientsData2.json | FALSE | $file2= | true | Accepted | |
detail.name1 is accepted when it consists of digits | 3 | $Header | RecipientsData3.json | FALSE | $file3= | true | Accepted | |
detail.name1 is accepted when it consists of special symbols | 4 | $Header | RecipientsData4.json | FALSE | $file4= | true | Accepted | |
detail.name1 is not accepted when it's more than 45 chars length | 5 | $Header | RecipientsData5.json | FALSE | $file5= | true | BadRequest |
TBOT.Generic.RESTFixtures.parseJSON | \\C605ZPUOTTFS2.tztst.loc\_QATeam\FitnesseTestArtifacts\files\Actuals\QA\NonYrSpecSuites\ServiceAutomation\EYAPI\Recipients\responses | ||
file | selector | generateFilePath? | assertjson? |
$file1 | $.status | true | NotStarted |
$file2 | $.status | true | NotStarted |
$file3 | $.status | true | NotStarted |
$file4 | $.status | true | NotStarted |
$file5 | $.errors['detail.name1'][0] | true | Invalid Name1 value ('ACBDEFGHIJKLMNOPQRSTUVWXYZACBDEFGHIJKLMNOPQRST'). Use string with maximum length of '45' |
Keyboard Shortcuts ?
General
- t Test page or suite
- e Edit page
- v View page (after test)
- a Add new page
Go To
- g u User Guide
- g q Quick Reference Guide
- g f Full Reference Guide
- g c Recent Changes
Edit Mode
- CTRL+s Save page
- ESC Cancel edit
Tools
- p Properties
- w Where used?
- AK+v Versions
- AK+h Page History
- / Focus on search bar
- s Open search page