Produced by Araxis Merge on 4/2/2019 1:08:01 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Frontend\ars-app\SeleniumUCP\src\webAPI | token.java | Wed Mar 27 19:16:14 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\SeleniumUCP\src\webAPI | token.java | Fri Mar 29 18:02:38 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 4 | 68 |
Changed | 3 | 8 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | package we bAPI; | |
2 | ||
3 | ||
4 | import sta tic io.res tassured.R estAssured .*; | |
5 | ||
6 | import org .junit.Bef ore; | |
7 | import org .junit.Bef oreClass; | |
8 | import org .junit.Tes t; | |
9 | ||
10 | import io. restassure d.path.jso n.JsonPath ; | |
11 | ||
12 | public cla ss token { | |
13 | protecte d static S tring OAT_ TOKEN = "" ; | |
14 | protected static Str ing baseUR I = "http: // SERVER . DOMAIN . EXT :8081/"; | |
15 | ||
16 | @B efore | |
17 | pu blic void getAccessT oken() { | |
18 | Json Path token = given() | |
19 | // .log() | |
20 | // .all() | |
21 | .auth() | |
22 | .preempt ive() | |
23 | .basic("AR S_FRONTEND _APP", " AI ") | |
24 | .queryPa ram("grant _type", "p assword") | |
25 | .queryPara m("usernam e", " AI ") | |
26 | .queryPara m("passwor d", " AI ") | |
27 | .formPar am("grant_ type", "pa ssword") | |
28 | .when() | |
29 | .post(ba seURI +"ar s/oauth/to ken") | |
30 | .andRetu rn() | |
31 | .jsonPat h(); | |
32 | OAT_ TOKEN = to ken.getStr ing("acces s_token"); | |
33 | ||
34 | } | |
35 | ||
36 | ||
37 | ||
38 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.