This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String apiMethod_POST() | |
{ | |
String foutput = ""; | |
try | |
{ | |
URL url = new URL(uri); | |
System.out.println("API URL : " + url); | |
HttpURLConnection conn = (HttpURLConnection) url.openConnection(); | |
conn.setDoOutput(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//Manual Login API | |
@Test(groups = { "Sanity" }) | |
public void ManualLogin() | |
{ | |
Keywords object=new Keywords(GlobalProperties.POST_URL+ver,new Login_InputGson(ver).LoginRequest()); | |
String LoginJSONOutput = object.apiMethod_POST(); | |
Login_Response login_Response = new Login_Response(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Keshav on 6/9/2016. | |
* login.spec.js file | |
*/ | |
var loginPage = require('./../fame1/login.po.js'); | |
var beforeScenario=require('./../fame1/beforeTest.js') | |
describe('FameLiv HomePage', function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Keshav on 6/9/2016. | |
* login.po.js file | |
*/ | |
var loginPage = function(){ | |
var params = browser.params; | |
//Object Locators | |
function loginPage() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Keshav on 6/9/2016. | |
* Configuration File Use By Protractor | |
* | |
*/ | |
exports.config = { | |
seleniumAddress: 'http://localhost:4444/wd/hub', | |
getPageTimeout: 95000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some text as well |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some code for protractor test |
NewerOlder