Skip to content

How to run Spring Boot and Spring Data with Gauge framework #5

@AhmetRufai

Description

@AhmetRufai

Hi,
In a large e-commerce company in Turkey, test automation structure, we decided to create using the Gauge Framework. We have created a project structure with spring boot and spring data for our DB connections and queries on the Java side. The Spring infrastructure we have created works successfully when run from the java main class. But when we want to run it with the Gauge runner, Spring does not stand up. Do you have a solution for this situation?
Project structure:

  • spec
    • Payment.spec
  • src
    • main
      • java
        • model
          • PaymentEntity.java
        • repository
          • PaymentRepository.java(this class is an interface and extends CrudRepository.java)
        • service
          • PaymentService.java
        • Application.java(main class)
      • resources
        • application.properties
    • test
      • java
        • payment
          • DbCheck.java (I want to perform a db query in this class)
        • step
          • PaymentStep.java (extends DbCheck.java)

Thanks/ Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions