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 |
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
/** | |
* 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
/** | |
* 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. | |
* 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
{ | |
//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
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
public String apiMethod_GET() | |
{ | |
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
public static Object GSON(String Input,Class modelClass) | |
{ | |
Gson gson = new GsonBuilder().setPrettyPrinting().create(); | |
Object object = gson.fromJson(Input, modelClass); | |
return object; | |
} |
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
package com.ttn.ResponseJSON; | |
import com.ttn.Model.Login; | |
import com.ttn.outputInterface.OutputInterface; | |
public class Login_Response implements OutputInterface | |
{ | |
public Object response(Object object) | |
{ | |
String Message,UserName,CityAddressInfo; |
OlderNewer