0% found this document useful (0 votes)
10 views

My Code

Uploaded by

Swetha Maguluri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

My Code

Uploaded by

Swetha Maguluri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

##Order Schedule

__step_group: Launch URL and Navigate to Sales Order Search


step: Launch URL,launchUrl,SCMenvUrl
step: LogIn to application,login,%%gop_auto_user1%%,%%gop_auto_user1_pwd%%
step: Navidate to Sales Order (New) with Quick Actions,clickQuickActionsLink,Order
Management>Sales Orders (New)
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Click on tab -> Sales Order Lines,omSearchOrderPage.switchTab,TabName=Sales
Order Lines,
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Search order in Sales Order
Lines,omSearchOrderPage.searchOrder,"OrderNumber=523089",
step: Wait for 30 Seconds,wait,30s
step: Get Row Count,omSearchOrderPage.getSearchResultCount,
step: Validate if total of 1 records are displayed,run_step_if:'%%SearchResultCount
%%'!='1',reporter.fail,Expected 1 records are not displayed,
step: Validate Line exists with Item BJ-HV-ANALOG-M and Status as Manual Scheduling
Required,assertRowExistInTable, uniqueColName=Item, strCellValues=BJ-HV-ANALOG-
M;Manual Scheduling Required, strColumnNamesOrIndices =Item;Line Status
step: Select Line
1,findAndSelectCheckboxInTable,uniqueColumnName=Item,matchingValueColNameOrRowNum=I
tem;Order,matchingValueOrRowNum=BJ-HV-ANALOG-M;523089,1,
step:Click on More Actions,click,"xpath=//oj-menu-button[descendant::*[.='More
Actions'] and not(@title)]",
step:Click on Schedule,click,Schedule,
step: Validate Status Post Schedule,
OM_RestLib.ValidateLineStatus,SourceOrderNumber=523089,SourceSystem=GPR,Status=Manu
al Reservation Required,Count=1
step: Setting global Variable,kwikify.setGlobalVariable,SourceOrderNumber=523089
step: Validate ScheduleShipDate,omRestLib.validateLineAttributes,SourceOrderNumber=
%%SourceOrderNumber%%,Attribute=ScheduleShipDate,ExpectedData=2024-09-
25T23:59:59+00:00,Count=1
step: Validate
ScheduleArrivalDate,omRestLib.validateLineAttributes,SourceOrderNumber=%
%SourceOrderNumber%%,Attribute=ScheduleArrivalDate,ExpectedData=2024-09-
26T23:59:59+00:00,Count=1
__stop_here
step: Click on tab -> Sales Orders,omSearchOrderPage.switchTab,TabName=Sales Orders
step: Click on tab -> Sales Order Lines,omSearchOrderPage.switchTab,TabName=Sales
Order Lines,
step: Validate Post Schedule,assertRowExistInTable, uniqueColName=Item,
strCellValues=M1;Manual Reservation Required;DHL Air Express,
strColumnNamesOrIndices =Warehouse Code;Line Status;Shipping Method
step: Click on Order,omSearchOrderPage.clickOnSearchedOrder
step: Wait for 60 Seconds,wait,60s
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Click customize Columns,click,Customize Columns
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Wait for 30 Seconds,wait,30s
step: Show Columns,showHideColumns,Columns=Warehouse;Scheduled Ship Date;Scheduled
Arrival Date,Actions=Show;Show;Show
step:Click close,click,Close
##step:Show
Columns,omCreateOrderPage.ColumnManagement,ColumnManagement=Y,Columns=Warehouse;Sch
eduled Ship Date;Scheduled Arrival Date,Actions=Show;Show;Show
step: Validate in Order Processing Page,assertRowExistInTable, uniqueColName=Item,
strCellValues=Seattle Manufacturing, strColumnNamesOrIndices =Warehouse,
step:Click on Cancel,click,Cancel
step: Wait for 60 Seconds,wait,60s
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Select Line
1,findAndSelectCheckboxInTable,uniqueColumnName=Item,matchingValueColNameOrRowNum=I
tem;Order,matchingValueOrRowNum=BJ-HV-ANALOG-M;523089,1,
step:Click on More Actions,click,"xpath=//oj-menu-button[descendant::*[.='More
Actions'] and not(@title)]",
step:Click on Unschedule,click,Unschedule,
step: Validate Status Post UnSchedule,
OM_RestLib.ValidateLineStatus,SourceOrderNumber=523089,SourceSystem=GPR,Status=Manu
al Scheduling Required,Count=1
__stop_here

step: Click on Order,omSearchOrderPage.clickOnSearchedOrder


step: Wait for 60 Seconds,wait,60s
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Select Line
1,findAndSelectCheckboxInTable,uniqueColumnName=Item,matchingValueColNameOrRowNum=I
tem;Quantity,matchingValueOrRowNum=BJ-HV-ANALOG-M;1,1,
step:Click on More Actions,click,"xpath=//oj-menu-button[descendant::*[.='More
Actions'] and not(@title)]",
step:Click on Review Fulfillment Alternatives,click,Review Fulfillment
Alternatives,
step: Clear Busy context, omCreateOrderPage.clearBusyContext
step: Get CA Row Count,getTableRowCount,uniqueColumnName=Line,$$lineCount$$
step: Verify Availability Status as Delayed after CA,assertRowExistInTable,
uniqueColName =Line, strCellValues =Delayed, strColumnNamesOrIndices =Availability
Status,shouldBeDisplayed=true
step: Get Cell Element,SCM_GOP_Common.getCell
step:Click on More Actions,click,"xpath=//oj-menu-button[descendant::*[.='More
Actions'] and not(@title)]",
step:Click on View Availability Details,click,View Availability Details,
##step: Click Link in Availability Options, findAndClickInTable,
uniqueColumnName=Line, matchingValueColNameOrRowNum=Availability Options,
matchingValueOrRowNum=1, colName=Availability Options
##step: Verify Availability Options,assertRowExistInTable, uniqueColName
=Availability Option, strCellValues =Delayed, strColumnNamesOrIndices =Availability
Status,shouldBeDisplayed=true
##step:Click Select in Availability Options, findAndClickInTable,
uniqueColumnName=Availability Option, matchingValueColNameOrRowNum=Actions,
matchingValueOrRowNum=Select, colName=Actions
##step: Select Line 1-2,findAndSelectCheckboxInTable,uniqueColumnName=Requested
Item,matchingValueColNameOrRowNum=Line,matchingValueOrRowNum=1-2,1,
##step:Click on More Actions,click,"xpath=//oj-menu-button[descendant::*[.='More
Actions'] and not(@title)]",
##step:Click on View Availability Details,click,View Availability Details,
##step: Verify record in pegging,assertRowExistInTable, uniqueColName =Item or
Resource, strCellValues =BJ-ANALOG-M;Demand Fulfillment;0.00667,
strColumnNamesOrIndices =Item or Resource;Pegging
Type;Quantity,shouldBeDisplayed=true
##step: Select Row with Fulfillment Line as 1-
1,findAndSelectRowInTable,uniqueColumnName=Item or
Resource,matchingValueColNameOrRowNum=Pegging Type,matchingValueOrRowNum=Demand
Fulfillment
##step: Click on View Order Details,click,View Order Details
##step: Click on Pegging Properties,click,Pegging Properties
##step: Validate data in Pegging Properties,assertText, text=Receiving Calendar=APS
Calendar, isCaseSensitive=false, expectedCondition=true
##step: Validate data in Pegging Properties,assertText, text=Expected Shipping
Cost=0, isCaseSensitive=false, expectedCondition=true
__step_group_end

__stop_here

You might also like