Closed kashifalam closed 5 years ago
@juherr @krmahadevan @missedone Can someone help me out here!!! Thanks in advance :)
@kashifalam Could you share a little project that shows the issue?
@juherr i cant share a project, as its very big and cant be shared with people outside my company. ill share one of the class which is part of the testng.xml instead
Also can you give some clues as to what could be the reason for this error, so that i can at least start looking in that direction.
================================= package com.odin.Chitti_ODIN.testCases.regression;
import com.odin.Chitti_ODIN.webScreens.*; import common.configurations.ContextManager; import org.testng.annotations.Test;
import com.odin.Chitti_ODIN.utils.webUtils.UserBaseTest;
import common.helpers.Log;
/**
@date 06-Sep-2017 3:12:04 PM */ public class LoginCases extends UserBaseTest {
/**
/Entering Invalid Email & pwd to Check Error Message/ @Test() public void invalidLogin() { Log.info("Checking InValid Login scenario"); HomeScreen home = new HomeScreen(); home.navigateto_Login().enterInvalidCredentials(); }
/**
/**
/**
Verfy Listing Url */ @Test public void loginFrom_Listing() { HomeScreen home = new HomeScreen(); ListingScreen list = home.searchwith_styleid("Shirts");
CommonElements common = new CommonElements(); String url = common.getCurrentUrl();
LoginScreen login = new LoginScreen(); login.logintoApp().vrfyUserHeader();
// String lisitngurl = common.getCurrentUrl();
// common.assertValue(url, lisitngurl);
//
}
/**
* Login from MyBag
*/
@Test
public void loginFrom_MyBag() {
HomeScreen home = new HomeScreen();
home.searchwith_styleid("Shirts").clickOn_BrandName();
PDPScreen pdp = new PDPScreen();
pdp.getproductDetails();
pdp.addtoBag();
CommonElements ce = new CommonElements();
ce.clickBagIcon();
ce.naviagtetoShoppingBagFromMiniBag();
ce.clickLoginButtonOnMybagPage();
LoginScreen login = new LoginScreen();
login.enterCredentials();
//MyBagScreen mb = new MyBagScreen();
ce.signout();
/*CheckoutScreen check = new CheckoutScreen();
check.signout_Checkout();*/
}
/**
* Login from PDP
* <p>
* Search with Keyword -- Navigate to PDP
* Add to bag -- Click on Checkout
*/
@Test
public void loginFrom_Checkout_via_PDP() {
HomeScreen home = new HomeScreen();
home.searchwith_styleid("Shirts").clickOn_BrandName();
PDPScreen pdp = new PDPScreen();
pdp.getproductDetails();
pdp.addProduct_toBagClickCheckout();
LoginScreen login = new LoginScreen();
login.enterCredentials();
CheckoutScreen check = new CheckoutScreen();
check.signout_Checkout();
}
/**
* Brand Joureny Login
*/
@Test
public void LoginFromBrandPage() {
HomeScreen home = new HomeScreen();
home.navigateToURL(ContextManager.getTestLevelContext().getValueAsString("BRAND_PAGE_URL"));
home.navigateto_Login().enterCredentials();
home.signout();
}
}
@kashifalam The idea is not having the whole project, but just a minimal one. Most of the time, it helps users to find where is the issue in their own code ;) Otherwise, it will help us to reproduce easily and save our time.
Please also do the following :
No response from the user. Closing this issue. Please comment if this is still a problem.
TestNG Version
Actual behavior
Getting error while running through jenkins Able to run on local device by running testng.xml file directly
Is the issue reproductible on runner?
LOG FILE
TESTNG FILE
POM FILE