I am facing issues with running my Galen tests on AWS Device Farm, I am properly packaging my .gspec
file under src/tests/java
folder and providing the same in my POM.xml, but while running the tests on the farm it throws FileNotFound Exception i.e.:
java.io.FileNotFoundException: src/test/java/HomePage.gspec at
com.galenframework.speclang2.pagespec.PageSpecReader.read(PageSpecReader.java:43)
at com.galenframework.api.Galen.checkLayout(Galen.java:68) at
com.galenframework.api.Galen.checkLayout(Galen.java:59) at
com.galenframework.api.Galen.checkLayout(Galen.java:154) at
com.galenframework.api.Galen.checkLayout(Galen.java:128) at
This works like a charm on local devices.
Hi Please find the attached screenshot of code snippet where we are using file path and POM file for maven package.
POMFile
FilePathCode