srinivasan
2018-12-04 13:53:32 UTC
Dear Jenkins/Robot Framework Experts,
Right now, I am using the below code snippets to log the wifi access
points in robot framework variable ie., ${Wi-Fi_Access_points_list},
could you please let me know how can i collect the wifi access points
in a text file from python and then return this text file to the robot
framework and then automatically displayed on Jenkins UI browser, as
of right now all ssid's are not getting displayed in variable
"${Wi-Fi_Access_points_list}"
Python code snippet:
===============
def wifi_list_accesspoints(self):
"""
List Wi-Fi Access points.
:timeout : timeout (default=120 seconds).
:return: command output as strings (list of Access point names).
"""
cmd = "nmcli -t -f SSID dev wifi list"
ret = self._helper.execute_cmd_output_string(cmd).split("\n")
time.sleep(3)
return ret
Robot framework snippet
====================
List Wi-Fi Access points
${Wi-Fi_Access_points_list} = Wifi List Accesspoints
Kindly do the needful as of no clues yet
many thanks in advance
Right now, I am using the below code snippets to log the wifi access
points in robot framework variable ie., ${Wi-Fi_Access_points_list},
could you please let me know how can i collect the wifi access points
in a text file from python and then return this text file to the robot
framework and then automatically displayed on Jenkins UI browser, as
of right now all ssid's are not getting displayed in variable
"${Wi-Fi_Access_points_list}"
Python code snippet:
===============
def wifi_list_accesspoints(self):
"""
List Wi-Fi Access points.
:timeout : timeout (default=120 seconds).
:return: command output as strings (list of Access point names).
"""
cmd = "nmcli -t -f SSID dev wifi list"
ret = self._helper.execute_cmd_output_string(cmd).split("\n")
time.sleep(3)
return ret
Robot framework snippet
====================
List Wi-Fi Access points
${Wi-Fi_Access_points_list} = Wifi List Accesspoints
Kindly do the needful as of no clues yet
many thanks in advance
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFsTbWfnB38brideenkrcO_Y%2BSoz%3D5aeSH94efe8bZx20%2B4rAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFsTbWfnB38brideenkrcO_Y%2BSoz%3D5aeSH94efe8bZx20%2B4rAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.