# Bdd is not executing for mobile automation

**URL:** <https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [October 28, 2023, 4:21pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416 "2023-10-28T16:21:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha.kaja](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/anusha.kaja/32/23870_2.png) [@anusha.kaja](https://forum.katalon.com/u/anusha.kaja)\
**Post date:** [October 28, 2023, 4:21pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/1 "2023-10-28T16:21:59Z")

</div>

when i tried to execute the code. it always give this message “Verification accomplished successfully” but it is not executing the code". can someone tell me what’s wrong with the code? here i have added feature file and step definition code  
My Feature file  
Feature:Login feature  
Scenario outline:Test login with valid credentials  
Given I want to navigate to Landing Page  
When User Click on login tab  
And I enter “” and “”  
Examples :  
| username | password |  
| [anushakaja234@yahoo.com](mailto:anushakaja234@yahoo.com) | Tester@123 |

Step Defination  
class LandingPage {  
/\*\*  
\* The step definitions below match with Katalon sample Gherkin steps  
\*/  
@Given(“I want to navigate to Landing Page”)  
def navigateToLandingpage(){  
println(“\n I want to navigate to Landing Page”)  
Mobile.startApplication(‘C:\Users\anusha.kaja\Downloads\Aauti\_Events\_03\_10\_2023.apk’, true)  
}  
@When(“User Click on login tab”)  
def clickLogin(){  
println(“\n User Click on login tab”)  
Mobile.tap(findTestObject(‘Object Repository/android.view.ViewGroup’), 0)  
}  
@And(“User enters (.) and (.)”)  
def enterCredentials(String username, String password){  
println(“\n Iam Inside enter Credentials”)  
println(“username :” + username)  
println(“password :” + password)  
Mobile.setText(findTestObject(‘Object Repository/android.widget.EditText (2)’), ‘username’)  
Mobile.setText(findTestObject(‘Object Repository/android.widget.EditText (3)’), ‘password’)  
}

---

<div class="post-metadata">

**Author:** ![kreno](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kreno/32/24257_2.png) [@kreno](https://forum.katalon.com/u/kreno)\
**Post date:** [October 30, 2023, 3:30pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/2 "2023-10-30T15:30:45Z")

</div>

@anusha.kaja Is it not doing any of the execution or just certain steps? One thing I noticed is that in the And statement you have “” for the instead of:

```auto
And I enter <username> and <password>

```

Are there any other logs you get from the console about the steps it is verifying?

---

<div class="post-metadata">

**Author:** ![ethan.pham](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ethan.pham/32/25882_2.png) [@ethan.pham](https://forum.katalon.com/u/ethan.pham)\
**Post date:** [November 16, 2023, 6:47am UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/3 "2023-11-16T06:47:29Z")

</div>

Yeah, I have the same problem, Is anyone on Katalon’s side help??? Does Katalon Studio support BDD testing on mobile???

---

<div class="post-metadata">

**Author:** ![kreno](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kreno/32/24257_2.png) [@kreno](https://forum.katalon.com/u/kreno)\
**Post date:** [November 16, 2023, 3:51pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/4 "2023-11-16T15:51:22Z")

</div>

@ethan.pham I am on a slightly older version of Katalon Studio (8.6.8) but have setup BDD on mobile for both iOS and Android. I am not sure if there is a bug in newer versions that allow this to no longer execute correctly.

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [November 16, 2023, 4:17pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/5 "2023-11-16T16:17:52Z")

</div>

@kreno Can you locate document that you used to configure your BDD setup that @ethan.pham can read to see where he can fix his issue?

---

<div class="post-metadata">

**Author:** ![kreno](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kreno/32/24257_2.png) [@kreno](https://forum.katalon.com/u/kreno)\
**Post date:** [November 16, 2023, 5:10pm UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/6 "2023-11-16T17:10:18Z")

</div>

One other thought I had is we still have the same appium version limitations. Katalon Studio still only supports appium 2.0 in the proof of concept version or by using remote execution. You will need to either user appium version 1.22.3 or below or use one of these workarounds to get appium 2.0 to work.

Here are the docs I used for setting up the BDD projects:

> **[Sample BDD (Cucumber) project in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/get-started/sample-projects/behavior-driven-development/sample-bdd-cucumber-project-in-katalon-studio)**
>
> This sample demonstrates fundamental behavior-driven development (BDD) testing. The application under test (AUT) is the react calculator//katalon-studio-samples.github.io/calculator. To learn more about BDD testing, you can refer to this document:...

> **[Work with BDD feature files in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/create-tests/manage-test-artifacts/work-with-bdd-feature-files-in-katalon-studio)**
>
> Learn how to work with BDD feature files in Katalon Studio.

---

<div class="post-metadata">

**Author:** ![ethan.pham](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ethan.pham/32/25882_2.png) [@ethan.pham](https://forum.katalon.com/u/ethan.pham)\
**Post date:** [November 19, 2023, 6:22am UTC](https://forum.katalon.com/t/bdd-is-not-executing-for-mobile-automation/101416/7 "2023-11-19T06:22:23Z")

</div>

I think the problem is come from Katalon tool. At first I create a normal mobile project then add some normal test cases, then I decided to convert all of them to BDD (add steps on feature file, glue, steps definition, …) and run it, so the problem is it can find my feature file but inform there is no test step, and it throws a message like @anusha.kaja mention! After that, I tried to create a Web UI BDD project and add all the steps of previous mobile project. Vãi, not sure how but successful to run BDD mobile by this way. Anyway, many thanks @grylion54 @kreno for support!!!
