Queries on Hybrid framework | Selenium Forum
M
Posted on 08/05/2016
Sir,

[b:2ghr8gnx]Why are you calling this method under @BeforeSuite in DriverScript.java?[Hybrid framework][/b:2ghr8gnx]


// returns current date and time
public static String now(String dateFormat) {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
return sdf.format(cal.getTime());

[b:2ghr8gnx]
Any specific reason sir ? Bcoz you dont use it in Data Driven Framework.[/b:2ghr8gnx]

M
Replied on 09/05/2016

it will run before the @test.


M
Replied on 09/05/2016

Ya sir, what's the purpose of calling now(String dateFormat) method...