Skip to main content
Question

ScriptARest beginnig

  • August 9, 2024
  • 1 reply
  • 128 views

Forum|alt.badge.img+16

Hi

 

I am going to start using ScriptARest tool. I downloaded it from IFS webpage, went through the documentation and faced following problems:

  1. When I am trying to use inveractive mode

ScriptARest.exe ServerUrl=https://ifscloudenvironment.com Username=ifsapp Password=ifsapp

I receive an error:

System.IO.FileNotFoundException: Could not find file 'C:\xxx\TestARest\Start.md'.

  1. Sample scripts from standard core give following error

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Ifs.TestARest.JSONWrapper' does not contain a definition for 'ParentObjkey

Nothing mentioned about it in documentation

  1. Based on documentation I prepared sample mdk file DockCode.md and received folowing output:

 

C:\xxx\TestARest>ScriptARest.exe ServerUrl=https://ifscloud-xxx.abs.local Username=ifsapp Password=ifsapp FileToRead=c:\xxx\testarest\DockCode.md
IFS Script-A-Rest v 1.2.1.38
======================================

appsettings.json read from C:\xxx\TestARest
2024-08-09 19:05:12 Start
2024-08-09 19:05:14 End

Test Report =======================================
Test Summary  ----------------------------------
  tests: 0
  failures: 0
  errors: 0

  time: 5.56E-05
  timestamp: 8/9/2024 7:05:13 PM
  system-out: Server calls: 0
              Failed server calls: 0
              Asserts: 0
              Failed asserts: 0
              Exceptions 0
Test Report (end)  ----------------------------------

 

I do not know if something goes wrong. No tests, failures, errors, etc..

 

Thank You in advance for any advices

 

1 reply

Forum|alt.badge.img+2
  • Do Gooder (Employee)
  • 5 replies
  • August 27, 2024

 Hi, 

We need more details to provide clear answer. 

  1. C:\xxx\TestARest\Start.md file not found error means test file which added to %FILE_TO_READ% in _script_a_rest.cmd not found in given path. 
  2. ObjKey error seems error from server, unable to say without the name of sample script or details of rest call.
  3. this seems no rest calls or tests in given script 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings