Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Introduce to Frontier Automation Testing Framework

No description
by

Александр Мосин

on 16 February 2017

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Introduce to Frontier Automation Testing Framework

Sequence of writing
UI test case

Jira Ticket
Write a draft for TC in BDD Format and add it to Jira (Has to cover all AC and ect)

Add Jira Ticket to framework
1. Add Epic-package to
Frontier_main_ui
(name format OR_XXXX - Jira-epic-id)
Сonfigure local
test runner
with Maven
1. Open
Run/debug Configurations

2. Add new
Junit
configuration

3. Use
Classpath of module:
serenity-bdd-tests

4. Set
Class:
com.frontier.ta.jbehave.AcceptanceTestSuite

5. Set
VM options
Technologies
Maven + JBehave + ReportPortal + TestNG
Introduce to Frontier Automation Testing Framework
Structure
2. Add
narrative.txt
to Epic-package with epic info
3. Add .story file to Epic-package
(name format OR_XXXX - Jira story id)
Use common steps if it possible.
You can find them in
com/frontier/ta/jbehave/definition_steps/ui/frontier/common
Create JBehave Definition step
1. Add Screen-package to
definition_steps/ui/frontier/main
2. Add screen-class to screen-package
(name format
ScreenNameDefinitionSteps
)
3. Screen class should be extends
AbstractDefinitionSteps
Create Step-Method
Steps class contains methods with main logic
that's why they could be and have to be
re-used in Definition-steps and Steps.
2. Add screen-class to screen-package
(name format
ScreenNameSteps
)
3. Screen class should be extends
CommonGreenScreenEquitySteps
1. Add Screen-package to
steps/ui/equity/
Create PageElement on PageObject
2. Add page-class to page-package
(name format
ScreenNamePage
)
1. Add Page-package to web/pages/grid/equity
3. Page class should be extends
AbstractGridEquityPage
Сonfigure local
test runner
with JUnit
-Denv=QA -Dsuite.ctc.stories=OR_XXXX.story -Dsuite.run.order.group=readWriteSequenceGeneral -Dwebdriver.driver=chrome -Dsuite.parallel.agent.number=1 -Dsuite.parallel.agent.total=1
1. Open
Run/debug Configurations

2. Add new
Maven
configuration

3. Use
Working directory
:


clean integration-test serenity:aggregate -Denv=QA_AUTO -Dsuite.ctc.stories=OR_XXXX.story -Dsuite.run.order.group=readWriteSequenceGeneral -Dsuite.parallel.agent.number=1 -Dsuite.parallel.agent.total=1 -DforkCount=0
4. Set
Command line
:

your_path/frontier_autotests/all-tests-parent/serenity-bdd-tests
Test_data_fetch_script
Create SQL query
SELECT
Facility_Id, Facility_Number
FROM
facility
WHERE
Facility_Id = 565
LIMIT
10;
Add Json file to framework
1. Add Epic-package to
\utils\test_data_fetch_script\input
(name format OR_XXXX - Jira-epic-id)
2. Add
.json
file to Epic-package
(name format OR_XXXX_N - Jira story id, number of scenario)
Json structure
Сonfigure local
Fetch_Script runner
1. Open
Run/debug Configurations

2. Add new
Aplication
configuration

3. Use Working directory:
\frontier_autotests


-e=QA_AUTO -sl=OR_XXXX_N.json
4.
Use classpath of module
:
test-data-fetch-script

5. Set
Program arguments:

Generated Table
You can find table with data on

\frontier_autotests\target\results
Result tables group by envs
REPORT PORTAL
Useful links
JBehave story and scenario(s)
https://ctc-customs.atlassian.net/wiki/pages/viewpage.action?pageId=49578351
TC steps templates
https://ctc-customs.atlassian.net/wiki/display/ORK/TC+steps+templates
Generic Steps
https://ctc-customs.atlassian.net/wiki/display/ORK/Generic+Steps
Useful links
Story file structure and fields
https://ctc-customs.atlassian.net/wiki/pages/viewpage.action?pageId=65962682
Useful links
Coding practices
https://ctc-customs.atlassian.net/wiki/display/ORK/Coding+practices
Guide for automation GWT scenario
https://ctc-customs.atlassian.net/wiki/display/ORK/Guide+for+automation+GWT+scenario
Useful links
SQL knowledge sharing sessions
https://ctc-customs.atlassian.net/wiki/display/ORK/SQL+knowledge+sharing+sessions
Useful links
Test data fetch script for creating Jbehave example tables
https://ctc-customs.atlassian.net/wiki/display/ORK/Test+data+fetch+script+for+creating+Jbehave+example+tables
Useful links
Testing Strategy
https://ctc-customs.atlassian.net/wiki/display/ORK/Testing+Strategy
Full transcript