Showing
1 changed file
with
102 additions
and
1 deletions
... | ... | @@ -1712,8 +1712,9 @@ Wait For Complaints Sync |
1712 | 1712 | |
1713 | 1713 | ${bid_data_keys}= Get Dictionary Keys ${bid.data} |
1714 | 1714 | |
1715 | - Run Keyword If 'lotValues' in ${bid_data_keys} Подати цінову пропозицію Lots ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} | |
1715 | + Run Keyword If 'lotValues' in ${bid_data_keys} and '${mode}' != 'open_esco' Подати цінову пропозицію Lots ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} | |
1716 | 1716 | Run Keyword If 'lotValues' not in ${bid_data_keys} Подати цінову пропозицію No Lots ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} |
1717 | + Run Keyword If '${mode}' == 'open_esco' Подати цінову пропозицію esco ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} | |
1717 | 1718 | |
1718 | 1719 | Click Element xpath=//button[contains(text(), 'Подати пропозицію')] |
1719 | 1720 | Sleep 1 |
... | ... | @@ -1739,6 +1740,29 @@ Wait For Complaints Sync |
1739 | 1740 | reload page |
1740 | 1741 | sleep 2 |
1741 | 1742 | |
1743 | +Подати цінову пропозицію esco | |
1744 | + [Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} | |
1745 | + Switch browser ${username} | |
1746 | + | |
1747 | + ${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID | |
1748 | + ${bid_data_keys}= Get Dictionary Keys ${bid.data} | |
1749 | + ${lots}= Get From Dictionary ${bid.data} lotValues | |
1750 | + ${lots_length}= Get Length ${lots} | |
1751 | + | |
1752 | + Open Tender | |
1753 | + ${procurementMethodType}= Отримати інформацію із тендера procurementMethodType | |
1754 | + | |
1755 | + : FOR ${INDEX} IN RANGE 0 ${lots_length} | |
1756 | + \ Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid=${lots[${INDEX}].relatedLot} | |
1757 | + \ Go To ${BROKERS['playtender'].basepage}/tender/bid?id=${tender_id}\#showlotbykey:${lots[${INDEX}].relatedLot} | |
1758 | + \ Sleep 2 | |
1759 | + \ Run Keyword And Ignore Error Подати цінову пропозицію Amount_esco ${lots[${INDEX}].value} | |
1760 | + \ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Input text xpath=//div[contains(@class, 'active')]//textarea[contains(@id, '-subcontracting_details')] ${bid.data.tenderers[0].name} | |
1761 | + \ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Click Element xpath=//div[contains(@class, 'active')]//input[contains(@id, '-self_eligible')] | |
1762 | + \ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Click Element xpath=//div[contains(@class, 'active')]//input[contains(@id, '-self_qualified')] | |
1763 | + \ Run Keyword If 'parameters' in ${bid_data_keys} Подати цінову пропозицію Features ${bid.data.parameters} | |
1764 | + \ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Run Keyword If '${procurementMethodType}' != 'aboveThresholdUA' Подати цінову пропозицію FakeDocs | |
1765 | + | |
1742 | 1766 | Подати цінову пропозицію Lots |
1743 | 1767 | [Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids} |
1744 | 1768 | Switch browser ${username} |
... | ... | @@ -1779,6 +1803,83 @@ Wait For Complaints Sync |
1779 | 1803 | ${amount}= convert_float_to_string ${amount} |
1780 | 1804 | Input text xpath=//div[contains(@class, 'active')]//input[contains(@id, '-value_amount')] ${amount} |
1781 | 1805 | |
1806 | +Подати цінову пропозицію Amount_esco | |
1807 | + [Arguments] ${bid} | |
1808 | + Log Many CAT777 ${bid} | |
1809 | +# ${amount}= convert_float_to_string ${amount} | |
1810 | +# Input text xpath=//div[contains(@class, 'active')]//input[contains(@id, '-value_amount')] ${amount} | |
1811 | + | |
1812 | + ${yearlyPaymentsPercentage}= convert_float_to_string ${bid.yearlyPaymentsPercentage} | |
1813 | + Sleep 1 | |
1814 | + Input Text xpath=//input[contains(@name,'percentage]')] ${yearlyPaymentsPercentage} | |
1815 | + Input Text xpath=//input[contains(@name,'years]')] ${bid.contractDuration.years} | |
1816 | + Input Text xpath=//input[contains(@name,'days]')] ${bid.contractDuration.days} | |
1817 | + | |
1818 | + ${reduction][0]}= multiply_hundred ${bid.annualCostsReduction[0]} | |
1819 | + ${reduction][0]}= Convert To Integer ${reduction][0]} | |
1820 | +# ${reduction][0]}= convert_float_to_string ${reduction][0]} | |
1821 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-1'] ${reduction][0]} | |
1822 | + ${reduction][1]}= multiply_hundred ${bid.annualCostsReduction[1]} | |
1823 | + ${reduction][1]}= Convert To Integer ${reduction][1]} | |
1824 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-2'] ${reduction][1]} | |
1825 | + ${reduction][2]}= multiply_hundred ${bid.annualCostsReduction[2]} | |
1826 | + ${reduction][2]}= Convert To Integer ${reduction][2]} | |
1827 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-3'] ${reduction][2]} | |
1828 | + ${reduction][3]}= multiply_hundred ${bid.annualCostsReduction[3]} | |
1829 | + ${reduction][3]}= Convert To Integer ${reduction][3]} | |
1830 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-4'] ${reduction][3]} | |
1831 | + ${reduction][4]}= multiply_hundred ${bid.annualCostsReduction[4]} | |
1832 | + ${reduction][4]}= Convert To Integer ${reduction][4]} | |
1833 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-5'] ${reduction][4]} | |
1834 | + ${reduction][5]}= multiply_hundred ${bid.annualCostsReduction[5]} | |
1835 | + ${reduction][5]}= Convert To Integer ${reduction][5]} | |
1836 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-6'] ${reduction][5]} | |
1837 | + ${reduction][6]}= multiply_hundred ${bid.annualCostsReduction[6]} | |
1838 | + ${reduction][6]}= Convert To Integer ${reduction][6]} | |
1839 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-7'] ${reduction][6]} | |
1840 | + ${reduction][7]}= multiply_hundred ${bid.annualCostsReduction[7]} | |
1841 | + ${reduction][7]}= Convert To Integer ${reduction][7]} | |
1842 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-8'] ${reduction][7]} | |
1843 | + ${reduction][8]}= multiply_hundred ${bid.annualCostsReduction[8]} | |
1844 | + ${reduction][8]}= Convert To Integer ${reduction][8]} | |
1845 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-9'] ${reduction][8]} | |
1846 | + ${reduction][9]}= multiply_hundred ${bid.annualCostsReduction[9]} | |
1847 | + ${reduction][9]}= Convert To Integer ${reduction][9]} | |
1848 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-10'] ${reduction][9]} | |
1849 | + ${reduction][10]}= multiply_hundred ${bid.annualCostsReduction[10]} | |
1850 | + ${reduction][10]}= Convert To Integer ${reduction][10]} | |
1851 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-11'] ${reduction][10]} | |
1852 | + ${reduction][11]}= multiply_hundred ${bid.annualCostsReduction[11]} | |
1853 | + ${reduction][11]}= Convert To Integer ${reduction][11]} | |
1854 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-12'] ${reduction][11]} | |
1855 | + ${reduction][12]}= multiply_hundred ${bid.annualCostsReduction[12]} | |
1856 | + ${reduction][12]}= Convert To Integer ${reduction][12]} | |
1857 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-13'] ${reduction][12]} | |
1858 | + ${reduction][13]}= multiply_hundred ${bid.annualCostsReduction[13]} | |
1859 | + ${reduction][13]}= Convert To Integer ${reduction][13]} | |
1860 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-14'] ${reduction][13]} | |
1861 | + ${reduction][14]}= multiply_hundred ${bid.annualCostsReduction[14]} | |
1862 | + ${reduction][14]}= Convert To Integer ${reduction][14]} | |
1863 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-15'] ${reduction][14]} | |
1864 | + ${reduction][15]}= multiply_hundred ${bid.annualCostsReduction[15]} | |
1865 | + ${reduction][15]}= Convert To Integer ${reduction][15]} | |
1866 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-16'] ${reduction][15]} | |
1867 | + ${reduction][16]}= multiply_hundred ${bid.annualCostsReduction[16]} | |
1868 | + ${reduction][16]}= Convert To Integer ${reduction][16]} | |
1869 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-17'] ${reduction][16]} | |
1870 | + ${reduction][17]}= multiply_hundred ${bid.annualCostsReduction[17]} | |
1871 | + ${reduction][17]}= Convert To Integer ${reduction][17]} | |
1872 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-18'] ${reduction][17]} | |
1873 | + ${reduction][18]}= multiply_hundred ${bid.annualCostsReduction[18]} | |
1874 | + ${reduction][18]}= Convert To Integer ${reduction][18]} | |
1875 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-19'] ${reduction][18]} | |
1876 | + ${reduction][19]}= multiply_hundred ${bid.annualCostsReduction[19]} | |
1877 | + ${reduction][19]}= Convert To Integer ${reduction][19]} | |
1878 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-20'] ${reduction][19]} | |
1879 | + ${reduction][20]}= multiply_hundred ${bid.annualCostsReduction[20]} | |
1880 | + ${reduction][20]}= Convert To Integer ${reduction][20]} | |
1881 | + Input Text xpath=//input[@class='form-control js-annual-costs-reduction-input js-period-21'] ${reduction][20]} | |
1882 | + | |
1782 | 1883 | Подати цінову пропозицію Features |
1783 | 1884 | [Arguments] ${features} |
1784 | 1885 | ${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID | ... | ... |
Please
register
or
login
to post a comment