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

[Bug]: Test Data Function class "DateFunctions" not found while executing test data custom function "dateAfterToday" #388

Open
1 task done
fafane opened this issue Jul 24, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@fafane
Copy link

fafane commented Jul 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What is the current behavior?

I tried to run a test using !|DateFunctions :: DateAfterToday| with the following parameters : 1 and dd/MM/yyyy
Unfortunately, the execution gives this error : Test Data Function class "DateFunctions" not found while executing test data custom function "dateAfterToday"

What is the expected behavior?

The input field has a date after today

Steps To Reproduce

Create a Test Case with a step using Data Generator
Select DateFunctions DateAfterToday and
Fill the parameters with 1 and dd/MM/yyyy
Launch the test and you will get this error for the step : Test Data Function class "DateFunctions" not found while executing test data custom function "dateAfterToday"

Version

Testsigma Community Edition

@fafane fafane added the bug Something isn't working label Jul 24, 2024
@amitsavyasachi
Copy link

We will check and fix this

@fafane
Copy link
Author

fafane commented Aug 12, 2024

After some digging, the problem seems to be with server/src/main/resources/db/bootstrap/V215__bootstrap_test_data_function_files.sql.
The field class_package for DateFunctions should be com.testsigma.automator.testdata.functions and not com/testsigma/customfunc...
If you update the field in the table default_data_generator_files, you don't have the error anymore.

@amitsavyasachi
Copy link

Noted. @fafane We will go though this and make changes in the code to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants