Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QAF with 4.0.0-RC3 and selenium 4.25.0 – while reading csv data StringUtil.parseCSV trims ‘00’ in the prefix, This issue does not occur with QAF 3.1.0. #461

Open
3 of 4 tasks
Ajayfollows opened this issue Dec 9, 2024 · 4 comments

Comments

@Ajayfollows
Copy link

QAF Version

QAF with 4.0.0-RC3 and selenium 4.25.0

Steps To Reproduce

While calling the CSVUtil.getCSVDataAsMap(), under this method StringUtil.parseCSV trims prefix zeros
StringUtil.parseCSV it trims the zeros’00’ in the prefix

Expected behavior

It should not trim prefix ‘00’ to item number
image

Actual behavior

It trims prefix ‘00’ while parsing CSV data
image

Is the issue reproducible on runner?

  • QAS
  • Maven
  • Gradle
  • [] Ant
  • Eclipse
@QE-Hub
Copy link

QE-Hub commented Jan 28, 2025

@cjayswal

@cjayswal
Copy link
Contributor

cjayswal commented Jan 28, 2025 via email

@QE-Hub
Copy link

QE-Hub commented Jan 29, 2025

tried with quotes still having same issue:

Image

After CSV parsing

Image

@cjayswal

@cjayswal
Copy link
Contributor

cjayswal commented Feb 2, 2025

I see, the earlier implementation was having string values but the latest converts it in to object, probably that might be the reason. If you are trimming value inside the code you can add leading space as work-around, for example US, CYO, " 00038703641", ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants