Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incrementing
#1
Not Solved
I need help with incrementing shipment number every time I run script.
Shipment number must be 32 characters exact. Can someone suggest what would work in my case? Thanks.
____________________________________________________________
Code:
Browser("Clinical LIMS v1.4").Page("Shipment List").WebButton("New Shipment").Click
for pr0_u_airbillnumber = JB00000000000000000000000000000010 to JB111111111111111111111111111110 step 1 'old shipment number
Browser("Clinical LIMS v1.4").Page("Add Shipment_2").Frame("maint_iframe").WebEdit("pr0_u_airbillnumber")Set pr0_u_airbillnumber
Browser("Clinical LIMS v1.4").Page("Add Shipment_2").Frame("maint_iframe").WebEdit("pr0_u_airbillnumber").Click
Browser("Clinical LIMS v1.4").Page("Add Shipment_2").WebButton("Save").Click
Browser("Clinical LIMS v1.4").Page("Edit Shipment SH000000000601").Frame("maint_iframe").WebButton("Add").Click
Browser("Clinical LIMS v1.4").Page("Edit Shipment SH000000000601").Frame("maint_iframe").WebEdit("WebEdit").Click
Browser("Clinical LIMS v1.4").Page("Edit Shipment SH000000000601").Frame("maint_iframe").WebEdit("WebEdit").Set DataTable("TRID", dtGlobalSheet)
Browser("Clinical LIMS v1.4").Page("Edit Shipment SH000000000601").WebButton("Save").Click
Reply
#2
Not Solved
Hi,

u cn retrieve the last used value of shipment number from db and then increment that by 1 everytime u run the script
Reply
#3
Not Solved
HI ,
We can use it by test iteration or giving the shipment value in Global sheet . But here in your case i want to know how your shipment value is incremented . Is it incrementing by 1 everytime or Do we have a fixed value ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Frames Auto-Incrementing In The Repository zunebuggy 0 1,241 11-15-2017, 10:18 PM
Last Post: zunebuggy
  incrementing a value during runtime jlane 1 2,276 06-08-2010, 08:08 PM
Last Post: Jackomcnabb

Forum Jump:


Users browsing this thread: 1 Guest(s)