I use the cucumber JVM for mobile test otomation and I have one question
When I use one feature file or one scenario in the a feature file, my codes works but if I use two feature file or two scenario in the a feature file ıt gives java.lang.NULLPointerException issue
issue
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:94)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:70)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:44)
at com.cucumber.OtoTest.Steps.yeni_adres_sayfasını_ac(Steps.java:269)
at ✽.When yeni adres sayfasını ac(1features.feature:22)
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
at org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:94)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:70)
at org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:44)
at com.cucumber.OtoTest.Steps.yeni_adres_sayfasını_ac(Steps.java:269)
at ✽.When yeni adres sayfasını ac(2dos.feature:6)
enter code here
Feature one @üyelik Feature: New User
Scenario: I am a new user
Given I open the app
When I select the city
When I uye ol button
When I field the E-posta
When I field the Sifre
When I field the Sifre repeat
When I field the Ad
When I field the Soyad
When I field the D.Tarihi
When I field the Semt
When I check the E-posta informationcheckbox
When I check the Sms information checkbox
Then I click to save button
And I click tamam button
Given Adres ekleme butonuna tıkla
Feature two @adres Feature: adres ekleme
Scenario: login oldum adres ekliyorum
When yeni adres sayfasını ac
When yeni adres sayfasında geri butonuna bas
When I field the E-posta
When Yeni adres ekleme butonuna tekrar bas
When yeni adres sayfasını acx2
Then Adres formunu doldurs
And Kaydet butonuna bas
Please help me
Aucun commentaire:
Enregistrer un commentaire