Вопрос по – Как сделать фаззинг с Selenium

5

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Ваш Ответ

2   ответа
14

Error: User Rate Limit Exceeded

  • Selenium is mostly about black-box testing, but you could do some whiter testing also with Selenium.
  • Selenium RC gives you much more freedom to do fuzz testing than Selenium IDE.

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

  • (1) Enter any value to a certain field
  • (2) Choose any field to test in a certain HTML form
  • (3) Choose any execution order/step to test a certain set of fields.

Error: User Rate Limit Exceeded

  • use (1) to test a specific field in your HTML form (did you choose a good maximum length for a field), your JavaScript handling of that field's value (e.g. turning "t" into today's date, turning "+1" into tomorrow's date), and your back end Database's handling of that variable (VARCHAR length, conversion of numerical string into numerical value, ...).
  • use (2) to test ALL possible fields
  • use (3) to test the interaction of the fields with each other: is there a JavaScript alert popped up if the username field was not entered before the password field, is there a database (e.g. Oracle) trigger "popped up" when certain condition is not met.

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededError: User Rate Limit Exceeded.

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

  • Create list of your HTML fields so that you could easily iterate through them. If your HTML fields are not structurized enough (legacy reason), think of adding a new attribute that contains a specific id, e.g. selenium-id to your HTML element, to (1) simplify XPath formation, (2) speed up XPath resolution and (3) to avoid translation hassle. While choosing the value for these newly added selenium-id, you are free to help iterating while fuzzing by (a) using consecutive numbers, (b) using names that forms a consistency.
  • Create a random variable to control the step, say rand_step
  • Create a random variable to control the field, say rand_field
  • Eventually, create a random variable to control the value entered into a certain field, say rand_value.
  • Now, inside your fuzzing algorithm, iterate first through the values of rand_step, then with each such iteration, iterate through rand_field, then finally iterate through rand_value.

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

  • Generating the test cases before hand in a batch file to be used in a certain period of time, and apply this file gradually
  • Generating the test cases on the fly, together with logging down those cases
  • Logging down only the failed cases.
Очень подробный ответ на мой вопрос. Благодарю. Вы объяснили, как вводить значения в поля ввода HTML, а как насчет случайного нажатия на кнопки? Piet Ed
3

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

  • Black box: checks if one box (usually the whole app) delivers the correct outputs while being fed with inputs. Theoretically, your application is bug free if ALL possible input-output pairs are verified.
  • White box: checks the control flow of the source. Theoretically, your application is bug free if ALL execution paths are visited without problem.

Error: User Rate Limit Exceeded

  • Time
  • Money
  • People

Error: User Rate Limit Exceeded

@CuongHuyTo Не беспокойтесь, просто пытаясь помочь :) Слава вам, хотя за то время, которое вы положили в эти ответы. Очень хорошо сделано.
@AndyPerfect: спасибо за обнаружение опечатки. Я имел в виду Selenium === черный ящик во всем написании, но потом по ошибке дописал его опечаткой.
Высоко ценится. Теперь я вижу более черную сторону тестирования Selenium. Тогда как насчет более белой части? Piet Ed
Тестирование селена является примером тестирования черного ящика, а не белого ящика.

Похожие вопросы