def appium_server_start(**options)
      command = +'appium'
      command << " --nodeconfig #{options[:config]}" if options.key?(:config)
      command << " -p #{options[:port]}" if options.key?(:port)
      command << " -bp #{options[:bp]}" if options.key?(:bp)
      command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
      command << " --tmp #{ENV['BASE_DIR']}/tmp/#{options[:tmp]}" if options.key?(:tmp)
      Dir.chdir('.') do
        puts(command)
        pid = spawn(command, out: '/dev/null')
        puts 'Waiting for Appium to start up...'
        sleep 10
        puts "Appium PID: #{pid}"
        puts 'Appium server did not start' if pid.nil?
      end
    end
def appium_server_start(**options)
      command = +'appium'
      command << " --nodeconfig #{options[:config]}" if options.key?(:config)
      command << " -p #{options[:port]}" if options.key?(:port)
      command << " -bp #{options[:bp]}" if options.key?(:bp)
      command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
      command << " --tmp #{ENV['BASE_DIR']}/tmp/#{options[:tmp]}" if options.key?(:tmp)
      Dir.chdir('.') do
        puts(command)
        pid = spawn(command, out: '/dev/null')
        puts 'Waiting for Appium to start up...'
        sleep 10
        puts "Appium PID: #{pid}"
        puts 'Appium server did not start' if pid.nil?
      end
    end
Start the appium server with the specified options