Commit ba185b01810d8c6c044b3406a0b5dd23afec251c

Authored by Playtenders
1 parent 90b5cd0f

provider bid criteria doc_id

@@ -721,10 +721,16 @@ Resource playtender_agree @@ -721,10 +721,16 @@ Resource playtender_agree
721 capture page screenshot 721 capture page screenshot
722 submit form and check result ${bid_form_submit_btn_locator} ${bid_form_submit_edit_success_msg} ${tender_created_checker_element_locator} ${true} 722 submit form and check result ${bid_form_submit_btn_locator} ${bid_form_submit_edit_success_msg} ${tender_created_checker_element_locator} ${true}
723 wait until page does not contain element with reloading ${tender_sync_element_locator} 723 wait until page does not contain element with reloading ${tender_sync_element_locator}
  724 +
  725 + ${doc_name} = playtender_service.split_docname ${path}
  726 + Execute Javascript $('#bids-pjax a[href*="/tender/view-my-bid-documents"]').click()
  727 +# ${bid_form_get_doc_id_value_input_locator}= replace string ${bid_form_get_doc_id_value_input_locator_tpl} %value% ${doc_name}
  728 +# ${doc_id}= Execute Javascript ${bid_form_get_doc_id_value_input_locator}
  729 + ${doc_id}= Execute Javascript return $('.doc__table_title:contains("${doc_name}")').parents('div').find('[name="opid"]').val()
  730 +# close current visible alert
724 # ${doc_id}= get text //div[@id="diagFileUpload"]//span[@data-atid="id"] 731 # ${doc_id}= get text //div[@id="diagFileUpload"]//span[@data-atid="id"]
725 # ${doc_title}= get text //div[@id="diagFileUpload"]//span[@data-atid="title"] 732 # ${doc_title}= get text //div[@id="diagFileUpload"]//span[@data-atid="title"]
726 - ${data}= Create Dictionary title=${doc_name}  
727 - #id=${doc_id} 733 + ${data}= Create Dictionary title=${doc_name} id=${doc_id}
728 ${data}= Create Dictionary data=${data} 734 ${data}= Create Dictionary data=${data}
729 Set to Dictionary ${USERS.users['${username}']} documents=${data} 735 Set to Dictionary ${USERS.users['${username}']} documents=${data}
730 736
@@ -759,6 +765,13 @@ Resource playtender_agree @@ -759,6 +765,13 @@ Resource playtender_agree
759 ${value} = get bid information ${field} 765 ${value} = get bid information ${field}
760 [Return] ${value} 766 [Return] ${value}
761 767
  768 +Завантажити відповіді на критерії закупівлі
  769 + [Arguments] ${username} ${tender_uaid} ${bid_criteria}
  770 +
  771 + log ${bid_criteria}
  772 + ${number_of_requirement_responses}= Get Length ${bid_criteria.data}
  773 + set global variable ${number_of_requirement_responses}
  774 +
762 775
763 ######################################################################################################################## 776 ########################################################################################################################
764 ################################################### END BID KEYWORDS ############################################# 777 ################################################### END BID KEYWORDS #############################################
@@ -424,6 +424,11 @@ def split_joinvalue(str_value): @@ -424,6 +424,11 @@ def split_joinvalue(str_value):
424 return str_value 424 return str_value
425 425
426 426
  427 +def split_docname(str_value):
  428 + str_value = str_value.replace("/tmp/", "")
  429 + return str_value
  430 +
  431 +
427 def doGetRequest(url, data): 432 def doGetRequest(url, data):
428 r = requests.get(url, params=data) 433 r = requests.get(url, params=data)
429 response = {} 434 response = {}
@@ -566,10 +566,14 @@ fill award reporting form in opened popup @@ -566,10 +566,14 @@ fill award reporting form in opened popup
566 566
567 ${org_name} = get from dictionary by keys ${data} identifier legalName 567 ${org_name} = get from dictionary by keys ${data} identifier legalName
568 run keyword if condition is not none ${org_name} input text to exist visible input ${tender_form_award_organization_name_locator} ${org_name} 568 run keyword if condition is not none ${org_name} input text to exist visible input ${tender_form_award_organization_name_locator} ${org_name}
  569 + capture page screenshot
569 ${organization_identifier_code} = get from dictionary by keys ${data} identifier id 570 ${organization_identifier_code} = get from dictionary by keys ${data} identifier id
  571 + capture page screenshot
570 run keyword if condition is not none ${organization_identifier_code} input text to exist visible input ${tender_form_award_organization_identifier_code_locator} ${organization_identifier_code} 572 run keyword if condition is not none ${organization_identifier_code} input text to exist visible input ${tender_form_award_organization_identifier_code_locator} ${organization_identifier_code}
571 ${award_organization_scale} = get from dictionary by keys ${data} scale 573 ${award_organization_scale} = get from dictionary by keys ${data} scale
  574 + capture page screenshot
572 run keyword if condition is not none ${award_organization_scale} select from visible list by value ${tender_form_award_organization_scale_locator} ${award_organization_scale} 575 run keyword if condition is not none ${award_organization_scale} select from visible list by value ${tender_form_award_organization_scale_locator} ${award_organization_scale}
  576 + capture page screenshot
573 ${region} = get from dictionary by keys ${data} address region 577 ${region} = get from dictionary by keys ${data} address region
574 run keyword if condition is not none ${region} select from visible list by label ${tender_form_award_organization_region_id_locator} ${region} 578 run keyword if condition is not none ${region} select from visible list by label ${tender_form_award_organization_region_id_locator} ${region}
575 ${postal_code} = get from dictionary by keys ${data} address postalCode 579 ${postal_code} = get from dictionary by keys ${data} address postalCode
@@ -341,5 +341,6 @@ ${stage2_form_add_document_description_btn_locator} = jquery=.js-d @@ -341,5 +341,6 @@ ${stage2_form_add_document_description_btn_locator} = jquery=.js-d
341 ${stage2_form_add_document_description_input_locator} = jquery=.js-dynamic-form-content-item:last .popover.fade.top.in textarea[id*="-description"].form-control 341 ${stage2_form_add_document_description_input_locator} = jquery=.js-dynamic-form-content-item:last .popover.fade.top.in textarea[id*="-description"].form-control
342 ${stage2_form_add_document_close_description_btn_locator} = jquery=.js-dynamic-form-content-item:last .popover.fade.top.in [href$="#close"] 342 ${stage2_form_add_document_close_description_btn_locator} = jquery=.js-dynamic-form-content-item:last .popover.fade.top.in [href$="#close"]
343 343
  344 +${bid_form_get_doc_id_value_input_locator_tpl} = return $('.doc__table_title:contains("%value%")').parents('div').find('[name="opid"]').val()
344 345
345 346
Please register or login to post a comment