1 Reply Latest reply on Aug 23, 2018 7:05 AM by RaktimR_11

    WI-FI 802.11  designing framework for automation testing through python scripting. I need with one example of wl command like wl down ,wl up ,wl isup  with in your above python scripting that will be very helpful.

    srpec_3628341

      Hi Vinayak ,

                        I got it correct WI-FI 802.11  designing framework for automation testing through python scripting. I need with one example of wl command like wl down ,wl up ,wl isup  with in your above python scripting that will be very helpful.

       

       

      Thanks ,

      Srikrishna . Pelluru

       

      ########################

       

      import sys, string , os ,argparse

      parser = argparse.ArgumentParser()
      parser.add_argument("-l","--location",help="absolute path to your wl utility,(note the slash) eg:<location>/43xxx_Wi-Fi/libraries/test/wl_tool/ ")
      parser.add_argument("-p","--port",help="com port Number")
      args = parser.parse_args()
      if args.location and args.port:
          print("Running wl utility at " + args.location)
          type(args.location)
          os.chdir(args.location)
          #add your list of commands here inside
          commands = ['ver' , 'ver'] ####

      eg. wl down,wl up,wl isup,wl out,wl up....use any one command and please give me one example...

          for i in range(0,len(commands)):

              os.system(args.location + "wl43909B0.exe --serial " + args.port + " " + commands[i])

       

      else:
          print("incorrect usage, type -h for help")

      ####################################