MarketSquare / MarketSquare/SwingLibrary

Run Keyword On Separate Thread does not support default parameters

Open
#171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
117
Forks
69
PR merge metrics
No merged PRs in 30d

Description

In ThreadKeywords.assertArgumentCountIsCorrect it checks for varargs, but does not check for default parameters (optional parameters or parameters with a default value.

So if you try:

Run Keyword in Separate Thread    Click On Table Cell    someTable    0    1

You will get an error message stating "Expected 5 or more, but got 3 arguments". It expects a click count number and button mask, but those shouldn't be required for the Click On Table Cell keyword.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ThreadKeywords.assertArgumentCountIsCorrect and reproduce the documented Run Keyword in Separate Thread call with Click On Table Cell. Trace how varargs and default parameters are counted. Done means optional click-count and button-mask parameters are not treated as required, so the example no longer reports an argument-count error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.