Skip to content

Commit 45529f1

Browse files
committed
added DateTime library Keywords and tests
1 parent 61c1c8e commit 45529f1

File tree

9 files changed

+5410
-389
lines changed

9 files changed

+5410
-389
lines changed

Reports/log.html

Lines changed: 2137 additions & 0 deletions
Large diffs are not rendered by default.

Reports/output.xml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<robot generator="Robot 3.2.1 (Python 3.8.1 on win32)" generated="20200722 18:37:48.797" rpa="false">
3+
<suite id="s1" name="DateTimeTests" source="C:\Automation\robotframeworkGit\TestCases\Regression\DateTimeTests.robot">
4+
<test id="s1-t1" name="Extract type from date">
5+
<kw name="Convert Date" library="DateTime">
6+
<doc>Converts between supported `date formats`.</doc>
7+
<arguments>
8+
<arg>07/09/20 13:35</arg>
9+
<arg>result_format=datetime</arg>
10+
<arg>date_format=%d/%m/%y %H:%M</arg>
11+
</arguments>
12+
<assign>
13+
<var>${date1}</var>
14+
</assign>
15+
<msg timestamp="20200722 18:37:48.840" level="INFO">${date1} = 2020-09-07 13:35:00</msg>
16+
<status status="PASS" starttime="20200722 18:37:48.836" endtime="20200722 18:37:48.840"></status>
17+
</kw>
18+
<kw name="Log To Console" library="BuiltIn">
19+
<doc>Logs the given message to the console.</doc>
20+
<arguments>
21+
<arg>${date1}</arg>
22+
</arguments>
23+
<status status="PASS" starttime="20200722 18:37:48.841" endtime="20200722 18:37:48.841"></status>
24+
</kw>
25+
<kw name="Log To Console" library="BuiltIn">
26+
<doc>Logs the given message to the console.</doc>
27+
<arguments>
28+
<arg>None</arg>
29+
</arguments>
30+
<status status="PASS" starttime="20200722 18:37:48.842" endtime="20200722 18:37:48.842"></status>
31+
</kw>
32+
<kw name="Log To Console" library="BuiltIn">
33+
<doc>Logs the given message to the console.</doc>
34+
<arguments>
35+
<arg>${date1.year}</arg>
36+
</arguments>
37+
<status status="PASS" starttime="20200722 18:37:48.843" endtime="20200722 18:37:48.843"></status>
38+
</kw>
39+
<kw name="Log To Console" library="BuiltIn">
40+
<doc>Logs the given message to the console.</doc>
41+
<arguments>
42+
<arg>${date1.month}</arg>
43+
</arguments>
44+
<status status="PASS" starttime="20200722 18:37:48.844" endtime="20200722 18:37:48.844"></status>
45+
</kw>
46+
<kw name="Log To Console" library="BuiltIn">
47+
<doc>Logs the given message to the console.</doc>
48+
<arguments>
49+
<arg>${date1.day}</arg>
50+
</arguments>
51+
<status status="PASS" starttime="20200722 18:37:48.844" endtime="20200722 18:37:48.845"></status>
52+
</kw>
53+
<kw name="Log To Console" library="BuiltIn">
54+
<doc>Logs the given message to the console.</doc>
55+
<arguments>
56+
<arg>${date1.hour}</arg>
57+
</arguments>
58+
<status status="PASS" starttime="20200722 18:37:48.845" endtime="20200722 18:37:48.846"></status>
59+
</kw>
60+
<kw name="Log To Console" library="BuiltIn">
61+
<doc>Logs the given message to the console.</doc>
62+
<arguments>
63+
<arg>${date1.minute}</arg>
64+
</arguments>
65+
<status status="PASS" starttime="20200722 18:37:48.846" endtime="20200722 18:37:48.847"></status>
66+
</kw>
67+
<kw name="Log To Console" library="BuiltIn">
68+
<doc>Logs the given message to the console.</doc>
69+
<arguments>
70+
<arg>${date1.second}</arg>
71+
</arguments>
72+
<status status="PASS" starttime="20200722 18:37:48.847" endtime="20200722 18:37:48.847"></status>
73+
</kw>
74+
<kw name="Log To Console" library="BuiltIn">
75+
<doc>Logs the given message to the console.</doc>
76+
<arguments>
77+
<arg>${date1.microsecond}</arg>
78+
</arguments>
79+
<status status="PASS" starttime="20200722 18:37:48.848" endtime="20200722 18:37:48.849"></status>
80+
</kw>
81+
<tags>
82+
<tag>test</tag>
83+
</tags>
84+
<status status="PASS" starttime="20200722 18:37:48.835" endtime="20200722 18:37:48.849" critical="yes"></status>
85+
</test>
86+
<status status="PASS" starttime="20200722 18:37:48.800" endtime="20200722 18:37:48.850"></status>
87+
</suite>
88+
<statistics>
89+
<total>
90+
<stat pass="1" fail="0">Critical Tests</stat>
91+
<stat pass="1" fail="0">All Tests</stat>
92+
</total>
93+
<tag>
94+
<stat pass="1" fail="0">test</stat>
95+
</tag>
96+
<suite>
97+
<stat pass="1" fail="0" id="s1" name="DateTimeTests">DateTimeTests</stat>
98+
</suite>
99+
</statistics>
100+
<errors>
101+
</errors>
102+
</robot>

0 commit comments

Comments
 (0)