Completed

Modifying Available variables for REST Connection callbacks

I have a scenario in which the test execution variables, namely test_case_execution_start_date and test_case_execution_end_date to be presented in the given date and time format: 2020-03-29T15:38:25.097 (yyyy-MM-ddThh:mm:ss.ms) where T is a character constant. Is there any way to achieve this?

0
4 comments
Avatar
Joseph Hamdan

Hi Raunak,

Could you please elaborate on the purpose of this request? What is the target system/endpoint? Is it possible to process this info into the right format on the side of this system/endpoint?

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Raunak Nandy (US - ADVS)

Firstly, may I know the format in which the variable "test_case_execution_start_date" is storing the value?

To answer your questions: we are maintaining a dashboard for our executions. This dashboard only accepts the start and end dates in "yyyy-MM-ddThh:mm:ss.ms" format. Processing this info into the right format on the endpoint side will complicate our application as the same dashboard is being used for multiple other projects as well. In other automation tools which have been already migrated to this dashboard have a listener code which modify this format according to the requirement. Is there a similar way to achieve this in Subject7 too?

 

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Raunak,

Apologies, there was a typo in the variable name '@test_case_execution_start_date' so it was incorrect. Here are the correct ones are along with their formats:

@test_case_execution_start_date_time > format yyyy-mm-dd hh:mm:ss.fffffffff

@test_case_execution_end_date_time > format yyyy-mm-dd hh:mm:ss.fffffffff 

We are working on providing an ability to configure variables for the above which will be ready in an upcoming release .We will let you know as soon as an update is available.

Thank you for your patience.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Raunak,

The required feature has been implemented as part of 8.16.1. Here is the release note for it:

  • Added a new custom date format under Administration > Account Preferences. This allows users to set a custom date/time format for @test_case_execution_start_date_time and @test_case_execution_end_date_time variables used in Execution Callbacks. For example, “yyyy-MM-dd’T’hh:mm:ss.ms” can be used where T is a constant and produces for example: ‘2020-10-06T09:43:26.4326’

Regards,

Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.