Hi,
I have created a Maven Archetype Project for Serenity Jbehave.
I am working on automation of few Acceptance Criteria from some website page validation.
I have created definition Steps,Step library,and Page Objects with one TestRunner (extends serenity stories).I have created a login functionality separately in reusable library(page object) and using that Login method in Main Definition Steps of Acceptance criteria(customercheck.story).But Whenever I am defining page object for this acceptance criteria in SearchAndCustprofileCheck.java it is asking to provide defaulturl. But I am using driver instance of login and wants to use the same instance throughout my navigation for homepage validation without providing any further defaulturl.
PFA the my project attachment for your reference with all details and POM.xml
Can you please check once and help me for any suitable solution.
Also Please let me know how to execute a specific story as junit.This is particularly important when I wnat to selectively run story out of many stories using Jbehave -Junit.
Hi, I have created a Maven Archetype Project for Serenity Jbehave.
I am working on automation of few Acceptance Criteria from some website page validation.
I have created definition Steps,Step library,and Page Objects with one TestRunner (extends serenity stories).I have created a login functionality separately in reusable library(page object) and using that Login method in Main Definition Steps of Acceptance criteria(customercheck.story).But Whenever I am defining page object for this acceptance criteria in SearchAndCustprofileCheck.java it is asking to provide defaulturl. But I am using driver instance of login and wants to use the same instance throughout my navigation for homepage validation without providing any further defaulturl.
PFA the my project attachment for your reference with all details and POM.xml
Can you please check once and help me for any suitable solution.
Also Please let me know how to execute a specific story as junit.This is particularly important when I wnat to selectively run story out of many stories using Jbehave -Junit.
src.zip
src.zip
POM.XML:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Thanks in advance.
Regards, Avijit Dutta