Maven_Qaf Sample Project

29 views
Skip to first unread message

BENEDICT PRADEEP BETHAPUDI

unread,
Jun 12, 2024, 10:22:43 AM6/12/24
to qaf-...@googlegroups.com
Hello All,

Can anyone guide me or provide Sample Project of Qaf.

Expectation:


1.Test data should be read from Excel to Feature

Scenario Outline: Login Page
When Open Browser "<browser>"
The Launch "<URL>"
Example:{file: filename.xla, sheet: sheet1}

For above scenario outline test data  should be provided by from .xls sheet.

As mention I'm expecting like above way. Can anyone guide me. 

Thank you..
Pradeep 

Renish K.R

unread,
Jun 13, 2024, 4:11:42 AM6/13/24
to qaf users
You can download a sample QAF maven project from the link below.

https://github.com/qmetry/qaf-blank-project-maven

In scenarios/suite1.feature you can add the below scenario
Note: create a .xlsx file inside the resources/data folder with the name "google_data.xlsx" and Sheet name "DEMO".

@Smoke
Scenario Outline: Sample Test using data-driven
    Given navigate to search page
    When search for '<search_term>'
    Then verify link with partial text 'qaf' is present
Examples: {'dataFile':'resources/data/google_data.xlsx','sheetName':'DEMO'}

Reply all
Reply to author
Forward
0 new messages