Skip to content

Commit

Permalink
Update Alchemy SDK Bot logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jg8481 committed Sep 15, 2024
1 parent 40aebae commit 2cb07fa
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="Robot Framework 7.0.1 (Python 3.11.2 on linux)" name="Generator">
<meta content="Robot Framework 7.1 (Python 3.11.2 on linux)" name="Generator">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKcAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAqAAAAAAAAAAAAAAAAAAAALIAAAD/AAAA4AAAANwAAADcAAAA3AAAANwAAADcAAAA3AAAANwAAADcAAAA4AAAAP8AAACxAAAAAAAAAKYAAAD/AAAAuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC/AAAA/wAAAKkAAAD6AAAAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN8AAAD/AAAA+gAAAMMAAAAAAAAAAgAAAGsAAABrAAAAawAAAGsAAABrAAAAawAAAGsAAABrAAAADAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAIsAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAANEAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAAAAAAAAMgAAADIAAAAyAAAAMgAAADIAAAAyAAAAMgAAADIAAAAFAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAADwAAAB8AAAAAAAAAGAAAABcAAAAAAAAAH8AAABKAAAAAAAAAAAAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAADCAAAA/wAAACkAAADqAAAA4QAAAAAAAAD7AAAA/wAAALAAAAAGAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAIwAAAP4AAAD/AAAA/wAAAGAAAAAAAAAAAAAAAMkAAAD/AAAAigAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAAAAAAAIAAAAcAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAA2gAAAP8AAAD7AAAAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN4AAAD/AAAAqwAAAP8AAACvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALIAAAD/AAAAsgAAAAAAAAC5AAAA/wAAAMoAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMkAAAD/AAAAvAAAAAAAAAAAAAAAAAAAAKwAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAArQAAAAAAAAAAwAMAAIABAAAf+AAAP/wAAD/8AAAgBAAAP/wAAD/8AAA//AAAJIwAADHEAAA//AAAP/wAAB/4AACAAQAAwAMAAA==">
<style media="all">
:root {
Expand Down Expand Up @@ -1252,58 +1252,48 @@
});
}
function calculatePercents(total, passed, failed, skipped) {
if (total == 0) {
if (total == 0)
return [0.0, 0.0, 0.0];
}
var pass = 100.0 * passed / total;
var skip = 100.0 * skipped / total;
var fail = 100.0 * failed / total;
if (pass > 0 && pass < 0.1)
pass = 0.1
pass = 0.1;
if (fail > 0 && fail < 0.1)
fail = 0.1
fail = 0.1;
if (skip > 0 && skip < 0.1)
skip = 0.1
skip = 0.1;
if (pass > 99.95 && pass < 100)
pass = 99.9
pass = 99.9;
if (fail > 99.95 && fail < 100)
fail = 99.9
fail = 99.9;
if (skip > 99.95 && skip < 100)
skip = 99.9
return [Math.round(pass*10)/10, Math.round(skip*10)/10, Math.round(fail*10)/10];
skip = 99.9;
return [round1(pass), round1(skip), round1(fail)];
}
function calculateWidths(num1, num2, num3) {
if (num1 + num2 + num3 === 0)
return [0.0, 0.0, 0.0];
// Make small percentages better visible
if (num1 > 0 && num1 < 1)
num1 = 1
num1 = 1.0;
if (num2 > 0 && num2 < 1)
num2 = 1
num2 = 1.0;
if (num3 > 0 && num3 < 1)
num3 = 1
num3 = 1.0;
// Handle situation where some are rounded up
while (num1 + num2 + num3 > 100) {
if (num1 > num2 && num1 > num3)
num1 -= 0.1;
else if (num2 > num1 && num2 > num3)
num2 -= 0.1;
else if (num3 > num1 && num3 > num2)
num3 -= 0.1;
else if (num1 > num3 && num1 == num2) {
num1 -= 0.1;
num2 -= 0.1;
}
else if (num1 > num2 && num1 == num3) {
num1 -= 0.1;
num3 -= 0.1;
}
else if (num2 > num1 && num2 == num3) {
num2 -= 0.1;
num3 -= 0.1;
}
if (num1 >= num2 && num1 >= num3)
num1 = round1(num1 - 0.1);
else if (num2 >= num1 && num2 >= num3)
num2 = round1(num2 - 0.1);
else
num3 = round1(num3 - 0.1);
}
return [Math.ceil(num1*10)/10, Math.ceil(num2*10)/10, Math.ceil(num3*10)/10];
return [num1, num2, num3];
}
function round1(num) {
return Math.round(num*10) / 10;
}
return {
Statistics: Statistics
Expand Down Expand Up @@ -2081,13 +2071,13 @@
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,789],[],[[4,0,0,[5],[1,23,693],[[0,6,7,0,0,0,8,0,[1,24,691],[[715,2,9]]],[0,10,11,0,12,13,0,0,[1,715,0],[]],[0,10,11,0,12,13,0,0,[1,715,0],[]],[0,10,11,0,12,13,0,0,[1,715,0],[]],[0,10,11,0,12,8,0,0,[1,715,0],[]],[0,10,11,0,12,13,0,0,[1,716,0],[]],[0,10,11,0,12,13,0,0,[1,716,0],[]],[0,10,11,0,12,13,0,0,[1,716,0],[]]]],[14,0,0,[5],[1,716,72],[[0,15,7,0,0,0,8,0,[1,717,71],[[787,2,16]]],[0,10,11,0,12,13,0,0,[1,787,0],[]],[0,10,11,0,12,13,0,0,[1,788,0],[]],[0,10,11,0,12,13,0,0,[1,788,0],[]],[0,10,11,0,12,8,0,0,[1,788,0],[]],[0,10,11,0,12,13,0,0,[1,788,0],[]],[0,10,11,0,12,13,0,0,[1,788,0],[]],[0,10,11,0,12,13,0,0,[1,788,0],[]]]]],[],[2,2,0,0]];
window.output["suite"] = [1,2,3,0,[],[1,0,551],[],[[4,0,0,[5],[1,25,451],[[0,6,7,0,0,0,8,0,[1,26,448],[[474,2,9]]],[0,10,11,0,12,13,0,0,[1,474,0],[]],[0,10,11,0,12,13,0,0,[1,475,0],[]],[0,10,11,0,12,13,0,0,[1,475,0],[]],[0,10,11,0,12,8,0,0,[1,475,0],[]],[0,10,11,0,12,13,0,0,[1,475,0],[]],[0,10,11,0,12,13,0,0,[1,476,0],[]],[0,10,11,0,12,13,0,0,[1,476,0],[]],[0,14,11,0,15,8,0,0,[1,476,0],[[476,2,16]]]]],[17,0,0,[5],[1,477,74],[[0,18,7,0,0,0,8,0,[1,477,71],[[548,2,19]]],[0,10,11,0,12,13,0,0,[1,548,0],[]],[0,10,11,0,12,13,0,0,[1,549,0],[]],[0,10,11,0,12,13,0,0,[1,549,0],[]],[0,10,11,0,12,8,0,0,[1,549,0],[]],[0,10,11,0,12,13,0,0,[1,549,0],[]],[0,10,11,0,12,13,0,0,[1,550,0],[]],[0,10,11,0,12,13,0,0,[1,550,0],[]],[0,14,11,0,15,8,0,0,[1,550,0],[[550,2,20]]]]]],[],[2,2,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*Robot Framework Alchemy SDK Bot Task","*/tasks/robotframework-alchemy-sdk-bot-rpa-keywords.robot","*../robotframework-alchemy-sdk-bot-rpa-keywords.robot","*ALCHEMY SDK BOT TASK : Get the current total amount of NFTs owned by Vitalik Buterin from Ethereum Mainnet.","*Alchemy_SDK_Bot_Task","*Get NFT Owner Information","*Remote","*${RESULT}","*${RESULT} = {'nftTotal': 27282, 'ownerAddr': 'vitalik.eth'}","*Log To Console","*BuiltIn","*<p>Logs the given message to the console.\x3c/p>","*...","*ALCHEMY SDK BOT TASK : Get the current metadata about a specific NFT from Ethereum Mainnet.","*Get NFT Metadata","*${RESULT} = {'checkNFTCollectionName': 'Crypto Coven', 'checkNFTDeployerAddress': '0xac9d54ca08740A608B6C474e5CA07d51cA8117Fa', 'checkSpecificNFTName': 'balsa vault', 'checkTokenType': 'ERC721', 'checkDeployedBlo..."]);
window.output["strings"] = window.output["strings"].concat(["*","*Robot Framework Alchemy SDK Bot Task","*/tasks/robotframework-alchemy-sdk-bot-rpa-keywords.robot","*../robotframework-alchemy-sdk-bot-rpa-keywords.robot","*ALCHEMY SDK BOT TASK : Get the current total amount of NFTs owned by Vitalik Buterin from Ethereum Mainnet.","*Alchemy_SDK_Bot_Task","*Get NFT Owner Information","*Remote","*${RESULT}","*${RESULT} = {'nftTotal': 27289, 'ownerAddr': 'vitalik.eth'}","*Log To Console","*BuiltIn","*<p>Logs the given message to the console.\x3c/p>","*...","*Log","*<p>Logs the given message with the given level.\x3c/p>","*{'nftTotal': 27289, 'ownerAddr': 'vitalik.eth'}","*ALCHEMY SDK BOT TASK : Get the current metadata about a specific NFT from Ethereum Mainnet.","*Get NFT Metadata","*${RESULT} = {'checkNFTCollectionName': 'Crypto Coven', 'checkNFTDeployerAddress': '0xac9d54ca08740A608B6C474e5CA07d51cA8117Fa', 'checkSpecificNFTName': 'balsa vault', 'checkTokenType': 'ERC721', 'checkDeployedBlo...","eNp9kN1OwjAYhm9l4aQnhrWyrpMgyajuyKCBeQHl6wdrKGvTDeJivHc3lMUjj98n798ngQrhuC5K6axFaI2r1+qEZB4RGTrfuki6C9bkLhrJJ/TWdRhyrQM2zYDSDwUPmiegaCYSmqc0W6UyEQlymVOhOYM8Y0wUajTaegSzN9Ab3gJ3yjYquqizbUesdEesy85fgeeNFPds1H6L6JV1fbHzaYehp9iMJ4IxfqNePdZbVIV1LrwFA4MTndJZSlPxd5VpwAX9vnkZkhYqqgLuHydV2/pmHsf6R54eDjFcf4Hhlsnyf30RqyX5+gbbPHQB"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"All Tasks","pass":2,"skip":0}],[{"elapsed":"00:00:01","fail":0,"label":"Alchemy_SDK_Bot_Task","pass":2,"skip":0}],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Robot Framework Alchemy SDK Bot Task","name":"Robot Framework Alchemy SDK Bot Task","pass":2,"skip":0}]];
Expand All @@ -2096,10 +2086,10 @@
window.output["errors"] = [];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1725162762475;
window.output["baseMillis"] = 1726381006644;
</script>
<script type="text/javascript">
window.output["generated"] = 791;
window.output["generated"] = 554;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,95 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 7.0.1 (Python 3.11.2 on linux)" generated="2024-09-01T03:52:42.474758" rpa="true" schemaversion="5">
<robot generator="Robot 7.1 (Python 3.11.2 on linux)" generated="2024-09-15T06:16:46.642960" rpa="true" schemaversion="5">
<suite id="s1" name="Robot Framework Alchemy SDK Bot Task" source="/tasks/robotframework-alchemy-sdk-bot-rpa-keywords.robot">
<test id="s1-t1" name="ALCHEMY SDK BOT TASK : Get the current total amount of NFTs owned by Vitalik Buterin from Ethereum Mainnet." line="9">
<test id="s1-t1" name="ALCHEMY SDK BOT TASK : Get the current total amount of NFTs owned by Vitalik Buterin from Ethereum Mainnet." line="11">
<kw name="Get NFT Owner Information" owner="Remote">
<msg time="2024-09-01T03:52:43.189604" level="INFO">${RESULT} = {'nftTotal': 27282, 'ownerAddr': 'vitalik.eth'}</msg>
<msg time="2024-09-15T06:16:47.117949" level="INFO">${RESULT} = {'nftTotal': 27289, 'ownerAddr': 'vitalik.eth'}</msg>
<var>${RESULT}</var>
<status status="PASS" start="2024-09-01T03:52:42.498538" elapsed="0.691086"/>
<status status="PASS" start="2024-09-15T06:16:46.669854" elapsed="0.448165"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.189805" elapsed="0.000124"/>
<status status="PASS" start="2024-09-15T06:16:47.118318" elapsed="0.000191"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190023" elapsed="0.000096"/>
<status status="PASS" start="2024-09-15T06:16:47.118669" elapsed="0.000090"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190217" elapsed="0.000085"/>
<status status="PASS" start="2024-09-15T06:16:47.118850" elapsed="0.000077"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>${RESULT}</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190387" elapsed="0.000100"/>
<status status="PASS" start="2024-09-15T06:16:47.119024" elapsed="0.000147"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190564" elapsed="0.000084"/>
<status status="PASS" start="2024-09-15T06:16:47.119275" elapsed="0.000211"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190718" elapsed="0.000078"/>
<status status="PASS" start="2024-09-15T06:16:47.119624" elapsed="0.000105"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.190876" elapsed="0.000152"/>
<status status="PASS" start="2024-09-15T06:16:47.119819" elapsed="0.000139"/>
</kw>
<kw name="Log" owner="BuiltIn">
<msg time="2024-09-15T06:16:47.120158" level="INFO">{'nftTotal': 27289, 'ownerAddr': 'vitalik.eth'}</msg>
<arg>${RESULT}</arg>
<doc>Logs the given message with the given level.</doc>
<status status="PASS" start="2024-09-15T06:16:47.120068" elapsed="0.000126"/>
</kw>
<tag>Alchemy_SDK_Bot_Task</tag>
<status status="PASS" start="2024-09-01T03:52:42.498099" elapsed="0.693059"/>
<status status="PASS" start="2024-09-15T06:16:46.669301" elapsed="0.451063"/>
</test>
<test id="s1-t2" name="ALCHEMY SDK BOT TASK : Get the current metadata about a specific NFT from Ethereum Mainnet." line="20">
<test id="s1-t2" name="ALCHEMY SDK BOT TASK : Get the current metadata about a specific NFT from Ethereum Mainnet." line="23">
<kw name="Get NFT Metadata" owner="Remote">
<msg time="2024-09-01T03:52:43.262199" level="INFO">${RESULT} = {'checkNFTCollectionName': 'Crypto Coven', 'checkNFTDeployerAddress': '0xac9d54ca08740A608B6C474e5CA07d51cA8117Fa', 'checkSpecificNFTName': 'balsa vault', 'checkTokenType': 'ERC721', 'checkDeployedBlo...</msg>
<msg time="2024-09-15T06:16:47.192281" level="INFO">${RESULT} = {'checkNFTCollectionName': 'Crypto Coven', 'checkNFTDeployerAddress': '0xac9d54ca08740A608B6C474e5CA07d51cA8117Fa', 'checkSpecificNFTName': 'balsa vault', 'checkTokenType': 'ERC721', 'checkDeployedBlo...</msg>
<var>${RESULT}</var>
<status status="PASS" start="2024-09-01T03:52:43.191508" elapsed="0.070711"/>
<status status="PASS" start="2024-09-15T06:16:47.120953" elapsed="0.071350"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.262341" elapsed="0.000122"/>
<status status="PASS" start="2024-09-15T06:16:47.192435" elapsed="0.000135"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.262562" elapsed="0.000057"/>
<status status="PASS" start="2024-09-15T06:16:47.192732" elapsed="0.000127"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.262717" elapsed="0.000081"/>
<status status="PASS" start="2024-09-15T06:16:47.192965" elapsed="0.000136"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>${RESULT}</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.262871" elapsed="0.000115"/>
<status status="PASS" start="2024-09-15T06:16:47.193221" elapsed="0.000168"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.263047" elapsed="0.000058"/>
<status status="PASS" start="2024-09-15T06:16:47.193486" elapsed="0.000128"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.263201" elapsed="0.000086"/>
<status status="PASS" start="2024-09-15T06:16:47.193724" elapsed="0.000138"/>
</kw>
<kw name="Log To Console" owner="BuiltIn">
<arg>...</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" start="2024-09-01T03:52:43.263375" elapsed="0.000103"/>
<status status="PASS" start="2024-09-15T06:16:47.193955" elapsed="0.000128"/>
</kw>
<kw name="Log" owner="BuiltIn">
<msg time="2024-09-15T06:16:47.194418" level="INFO">{'checkNFTCollectionName': 'Crypto Coven', 'checkNFTDeployerAddress': '0xac9d54ca08740A608B6C474e5CA07d51cA8117Fa', 'checkSpecificNFTName': 'balsa vault', 'checkTokenType': 'ERC721', 'checkDeployedBlockNumber': 13547115, 'checkOpenSeaFloorPrice': 0.036067, 'checkNFTDiscordURL': 'https://discord.gg/cryptocoven'}</msg>
<arg>${RESULT}</arg>
<doc>Logs the given message with the given level.</doc>
<status status="PASS" start="2024-09-15T06:16:47.194196" elapsed="0.000264"/>
</kw>
<tag>Alchemy_SDK_Bot_Task</tag>
<status status="PASS" start="2024-09-01T03:52:43.191306" elapsed="0.072273"/>
<status status="PASS" start="2024-09-15T06:16:47.120699" elapsed="0.073931"/>
</test>
<status status="PASS" start="2024-09-01T03:52:42.475171" elapsed="0.788755"/>
<status status="PASS" start="2024-09-15T06:16:46.643633" elapsed="0.551469"/>
</suite>
<statistics>
<total>
Expand Down

0 comments on commit 2cb07fa

Please sign in to comment.