# #169252582 BM UI in Sentinel: rules ( request and response mapping ) https://www.pivotaltracker.com/story/show/169252582 ## Scenario Test ```gherkin= Scenario Outline: General Config Given User already on FBS Config Page When User Input Description : <Description> And Tick Production : <Production> And Tick Debug : <Debug> And Click Save Config Then General Config Saved Examples: | Description | Production | Debug | | Tes | true | true | Scenario Outline: API Config Given User already on FBS Config Page When User Choose Connection Type : <Connection_Type> And Choose Content Type : <Content_Type> And Click Save Config Examples: | Connection_Type | Content_Type | | HTTPS | JSON | Scenario Outline: API Config [Authentication] Given User already on FBS Config Page When User Click Tab : <Tab> And Choose Type : <Type> And Input Url : <Url> And Choose Method : <Method> And Choose Header Key : <Key> and Value: <Value> And Input Timeout : <Timeout> And Input Body : <Body> And Input Response Mapping BM Key : <BM_Key> and Biller Parameter Path : <Biller_Parameter_Path> And Click Save Config Examples: | Tab | Type | Url | Method | Key | Value | Timeout | Body | BM_Key | Biller_Parameter_Path | | Authentication | Bearer Token | test | POST | Content-Type | application/json | 60 | test | test | test | Scenario Outline: API Config [Inquiry/Purchase/Advise/Reversal] Success Given User already on FBS Config Page When User Click Tab : <Tab> And Choose Product Type : <Product_Type> And Click Button Add And Input Url : <Url> And Choose Method : <Method> And Choose Header Key : <Key> and Value: <Value> And Input Timeout : <Timeout> And Input Body : <Body> And Input Body Mapping : <Body_Mapping> And Input Response Mapping : <Response_Mapping> And Click Save Config Examples: | Tab | Product Type | Url | Method | Key | Value | Timeout | Body | BM_Key | Biller_Parameter_Path | | Inquiry | Mobile | test | POST | Content-Type | application/json | 60 | test | test | test | | Purchase | Mobile | test | POST | Content-Type | application/json | 60 | test | test | test | | Advise | Mobile | test | POST | Content-Type | application/json | 60 | test | test | test | | Reversal | Mobile | test | POST | Content-Type | application/json | 60 | test | test | test | Scenario Outline: API Config [Stock] Success Given User already on FBS Config Page When User Click Tab : <Tab> And Input Url : <Url> And Choose Method : <Method> And Choose Header Key : <Key> and Value: <Value> And Input Timeout : <Timeout> And Input Body : <Body> And Input Body Mapping : <Body_Mapping> And Input Response Mapping : <Response_Mapping> And Click Save Config Examples: | Tab | Url | Method | Key | Value | Timeout | Body | BM_Key | Body_Mapping | | Reversal | test | POST | Content-Type | application/json | 60 | test | test | test | Scenario Outline: API Config [Callback] Success Given User already on FBS Config Page When User Click Tab : <Tab> And Input Whitelist IP : <Whitelist_IP> And Input Success Massage : <Success_Massage> And Input Response Mapping : <Response_Mapping> And Click Save Config Examples: | Tab | Whitelist_IP | Success_Massage | Response_Mapping | | test | test | test | test | Scenario Outline: Product Mapping Given User already on FBS Config Page When User Choose Operator : <Operator> And Choose Product : <Product> And Input Product Code : <Product_Code> And Price : <Price> And Click Save Config Examples: | Operator | Product | Product_Code | Price | | telkomsel | Telkomsel Rp 20.000 | test | 20000 | Scenario Outline: Save Response Code Mapping Success Given User already on FBS Config Page When User Choose Response Code : <Response_Code> And Click Button Add And Click Button Add response code config And Input Biller Response : <Biller_Response> And Input Message : <Message> And Click Save Config Examples: | Response_Code | Biller_Response | Message | | 00 | 0000 | success | ```