PowerShell Document Test Script

Hi Everyone.
I am in desperate need of some Powershell Test Script.
I am trying to automate document composition testing, as in direct powershell to a directory containing the pdf document and data files. 
I am able to get the data in raw form and then the data to be accessible on Powershell.
I am trying to test if things are as they should be as according to a spec.
CAN SOMEONE PLEASE HELP ME????
i HAVE NEVER USED pOWERSHELL OR DONE ANYTHING LIKE THIS AND MY JOB DEPENDS ON IT.

Hi CraigdelaRey,
If you want to query all the .pdf files under directory d:\, please refer to the script below:
Get-ChildItem d:\*.pdf -Recurse|select -ExpandProperty fullname
To read the pdf file in Powershell, please refer to this script, which also need the itextsharp library from:
http://sourceforge.net/projects/itextsharp/
And the script below is for your reference:
Add-Type -Path .\itextsharp.dll
$reader = New-Object iTextSharp.text.pdf.pdfreader -ArgumentList "$pwd\test.pdf"
for ($page = 1; $page -le $reader.NumberOfPages; $page++) {
$lines = [char[]]$reader.GetPageContent($page) -join "" -split "`n"
foreach ($line in $lines) {
if ($line -match "^\[") {
$line = $line -replace "\\([\S])", $matches[1]
$line -replace "^\[\(|\)\]TJ$", "" -split "\)\-?\d+\.?\d*\(" -join ""
Refer to:
Using Powershell to Parse a PDF file
If there is anything else regarding this script, please feel free to post back.
Best Regards,
Anna Wang

Similar Messages

  • Compensation Workbench Setup and Test Script document....

    Hi,
    Does anyone out there has setup and test script document for Compensation Workbench that you are willing to share?
    Thanks

    Hi,
    For single system landscape..
    Go 000, DDIC ... STMS--> here it will ask for domain controller -- give self domain --->   Domain controller has been assigned .
    Now again  goto STMS> System overview>SAP SYSTEM >Create ->Virtual system- give name V<SID>
    till this point your domain controller is created and virtual system is created .Next our aim is to setup STMS
    again goto STMS>transport routes> change > configuration>statndard configuration ---> select second option (development and productino System ) because here your dev system will your own system and virtual system would be production  system .
    ---> pop up will come -> give DEV - SID and Productino SID- it willl  automatically create the route .
    Save this and exit.
    This way We can set single system landscape.
    Thanks and Regards,
    Arun Rathour

  • Request for HRMS Test Scripts/Documents

    Please share the URL to download HRMS Test Scripts (Irequirement, SSHR and OTL) bcz I am preparing to automate HRMS Scenarios using QTP.
    Thanks in ADVANCE.

    Please share the URL to download HRMS Test Scripts (Irequirement, SSHR and OTL) bcz I am preparing to automate HRMS Scenarios using QTP.
    Thanks in ADVANCE.

  • Test Scripts

    Some one please let me  know what a test script is.....and how it is written...I need to write it for the HR modules....This is in context with support stacks being applied to SBX. ...and for testing that....Please also let me know if it is the responsibility of a functional consultant....
    Message was edited by:
            Anu Rajagopal

    Hi,
    normally a test script contains information like; logical steps per given situation (input), per step an expected result (output), pre-conditions for execution of the test script, reference to requirement / design document. A separate area for test script final result incl. name of tester and sign-off the test result is required. The test script can only be marked as passed if all logical steps are finished succesfull according to the expected result(s).
    (example: [Input] Go to menu x, click on y; [output] y runned succesfully)
    The test-script is used to examine whether the system displays the desired behaviour under specific (in your case HR specific) circumstances.
    And (from my point of view) a functional consultant can be responsible for test script creation and execution. It depends on (test-) organization.
    Best regards,
    Maurice

  • How to define Export parameter as Import parameter in next test script.

    Hi Experts,
    We have defined Purchase order no. as export parameter in ME21N transaction test script.
    Test configuration for ME21N transaction executed succesfully and the Purchase order No. appeared in the last message
    is the export parameter for next test script i.e. MIGO transaction.
    However I am unable to define this export parameter as Import parameter in next test script for MIGO transaction.
    Please suggest me the method to define the same.
    Please Help...
    Thanks in Advance
    Vikas

    Vikas,
    You need to create super script which is nothing but having the both the steps (Po creation & MIGO ) in this eCatt script. This can be achieved by using the REF command as ex. below.
    Create PO
    REF ( Z_CREATE_PO , Z_CREATE_PO_1 ).
    Create MIGO
    REF ( Z_CREATE_MIGO , Z_CREATE_MIGO_1 ).
    Z_Create_PO is the actual eCatt script that you recorded to create the PO. Z_CREATE_QUOTE_1 is the interface created by SAP. Similarly you have use the REF command to call the MIGO script inside this super script.
    To pass the export parameter from PO step to MIGO, double click the Z_CREATE_PO_1and define the export variable for PO number. And do the same on the interface for MIGO step.
    Follow the instructions if you need in this help document posted by another user in this forum
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID0134775250DB00634934533836311611End?blog=/pub/wlg/3497
    Note : Cut & paste the entire link above to view the document.
    thanks
    Venkat

  • Report available for test cases (manual test script files uploaded)?

    We upload our test script files to the "Test Case" tab, assign it a status.  We are hoping to have a report that would report all test case files and their STATUSES.
    In solar_eval, there is a standard SAP report for test case provided.  However, the field "Status" for the test case file is not included in this report.
    Is there any report available that would give us this status?  If not, in which table does this data come from?  Is there anyway to build a simple SQVI query to extract the list of test cases and their statuses?
    Any help is highly appreciated!

    Hi Jo,
    It's not entirely clear on whether you are look for 'Status' values of the Test Case document itself OR for 'Status' values of the Test(s) conducted on such Test Case documents.
    I believe the following two SOLAR_EVAL reports should resolve either ways:
    (a) SOLAR_EVAL -> Project -> Configuration -> Assignments -> Documentation (Programme called is SAPLSPROJECT_SOLAR_DOC_EVAL_IM) , Tick only 'Test Cases' and switch off other tabs
    (b) SOLAR_EVAL -> Project -> Test -> Test Plan Status Analysis
    Best regards,
    Srini

  • Test Script for Billing

    Hello Experts,
    I would like create test script for Billing.Since i have no clue about test script coz in my previous organization we have not made any script for testing.Now i would like to create testing for Billing.
    Could you all explain me what are the pre - requisites for testing only for Billing.
    What are the different ways for testing to perform since i have never worked on testing on documentations.
    Your reply would appreciate.
    Thanks
    Shri...

    Test script is nothing but unit testing through which you list down the steps that are needed to execute a test case and record the results.
    In your case, since you wanted a test script for billing, first you need to identify the different types of billing documents configured in production client.  For each and every billing document type, you need to create a test document and record in the following format
    Test Scenario No.
    Scenario:::Billing
    No.::TCode:::Description:::Input Data:::Output Data:::Remarks (OK/Error)
    We call this process as ASAP Methodology.  The prescribed format you can get in service market place.
    thanks
    G. Lakshmipathi

  • Config and test scripts of SOP

    Hello All,
    I am working on configuration of Flexible Planning.
       I will have to start on the test scripts/cases soon and I am halfway with the config.It would be great if anybody could help me out with the config as well as test cases documents.
    Thanks
    Ravi

    I have completed the config involved for SOP.
      The scenario is my Client is going to get sales history from a legacy system uploaded to info structure(SXXX) and perform analysis.
      I haven't worked on SOP's RCCP as most of my projects were involved in getting a file uploaded to DM and completing the PE.
    I will have to come up with a graphical and report analysis anD match the RCCP with the sales history provided.Could anyone tell me what are the necessary fields that will be required from the legacy system to map it into SAP for RCCP.
      It would be great if anyone could enlighten me with the process that goes with RCCP and the relevant formulaes necessary to know in the planning table.
    I really appreciate the help in this regard.
    Thanks
    Ravi

  • A way to run bundle tests scripts with EBS 11.5.10.2

    Hi,
    looking for a way to run bundle tests scripts with EBS 11.5.10.2. We prepare our tests scenarios and run them manually now but would rather job them and verify results of testing on logs created by the automatic execution of these scripts.
    We use UPK for preparing and supporting our training activities and I read that UPK features a way to prepare and run bundle tests scipts. Does anybody from the community knows something about that? I haven't found a guide to explain how to do it.
    Hoping someone to lead me to the topic I'm looking for. Does any release of UPK can do this and how or the community uses another tool to do so
    Alain

    UPK allows you to create manual test scripts which can be imported into a variety of testing suites. UPK does not provide automated test scripts. In the current release, the name of the publishing style is "HP Quality Center". This will create a spreadsheet document that can then be imported into a variety of testing suites as a test script. The product documentation should give you all the information you need to start using the HP Quality Center output. If not, here is a blog post describing how to use UPK to create an output for IBM Rational Quality Manager, which may help describe how this process works:
    http://blogs.oracle.com/UPK/2010/05/upk_and_rqm.html
    I hope this helps.
    Best regards,
    Marc

  • Test scripts for controlling

    Can any one explain me what the test script contains for testing out transcation codes in controlling . can anyone provide me a sample of test script for testing transcations in controlling.
    Thanks
    Monica

    Hi,
    Before the configuration settings / Reports are moved to Production it needs to be tested by Consultants as well as Business Users.
    Business Users will specify their requirements during Blue Print phase - basically how the system should work. After completing the configuration, testing is done based on the requirements. For testing this Test scripts are prepared for different Business scenarios covering various Transaction codes. This sequence of testing different transaction codes is known as Test script.
    For example for a Sales Cycle testing - a Sales Order is created - Delivery document is created - a Billing document is created. Accounting documents are checked whether it is posted to correct GL Accounts / Profit Centers etc. All these steps should be included in Test script.
    Thanks
    Murali.

  • PA,OM Test Scripts(Scenario Testing)

    Hi All,
      Gudday.My frnd has a task at hand and he needs to prepare Test Scripts(Scneario Testing) for PA and OM..Kindly provide some directions and share templates ,should you be having one.Appreciate your attention into this subject
    No Worries
    Karthik

    Hi,
    1.) As per the Blue print document and the configuration done make the list of activities for Unit testing for PA and OM module seperately and integration testing.
    2.) For eg:- Hiring Process - List down the Tcode and different ITypes and mandatory feild with significance .
    3.) Template can be a word file with information as
    Unit Test Scenario                                                   
    SCENARIO:                                              OWNER:      ESG
    BUSINESS CASE:                                                                                    SAP-HR.
    STATUS:     
    DESCRIPTION:     .:     
    EXPECTED RESULT                                                    RUN DATE:      17.02.2008
    SETUP DATA
    DATA OBJECT     VALUE/CODE     DESCRIPTION     COMMENTS AND NOTES
    TRANSACTIONAL STEPS No.
    BUSINESS PROCESS STEPS / BPP NUMBER     
    TRANS. CODE     
    INPUT DATA / SPECIAL  INFORMATION     
    EXPECTED RESULTS     
    OUTPUT DATA / RESULT     
    TESTER / TEAM     OK /
    ERROR
    Regards
    Hemant V. Mahale
    Edited by: Hemant Mahale on Feb 24, 2009 11:39 AM

  • ECATT Test Script Generation with ME21N MIGO

    Hi,
    I am generating the test script in DEV 100 it is running successfully when i am running it into the target system DEV 200 it is giving error.
    I am facing this for MIGO when canceling the document, displaying any document or changing any document in ME21n, ME22n and soon.
    Suggest the solution for that.
    Regards

    > I am generating the test script in DEV 100 it is running successfully when i am running it into the target system DEV 200 it is giving error.
    Interesting.
    Unfortunately nobody has a magic ball to check which error you get; so if you want some advise, please post what you face.
    Markus

  • Test plan, Test scripts

    Hi friends,
    Please any one tell me, what is the Test plan, Test scripts, Test Scenarios and the procedure to create all.

    Test plan: How do you want to test, when and where and who will do the testing.
    Test scripts: a document which will contain all the test cases / scenarios.
    Test scenarios: will list the scenarios to be tested, in a logical order, expected results, actual results, defects, tested by and status.
    Procedure to prepare them: Just a word document. You should know the processes and the requirements to do this.
    Ravi Thothadri

  • MM Test script Scenarios

    HI guru's,
    Iam new to MM any one can send me MM Test Script SCript Scenarios.. I want to do Unit Testing and Integrating Testing.....plz send me docuemnts to this id....janab4u(at the rate of )gmail
    regards
    JK

    hi,
    It depends upon the business process.
    Example : you are checking a P.O for GRN
    Test Script:
    1) Go to  MIGO
    2) enter the P.O no:
    3) enter the details.
    4) Check ,it green button is appearing.
    5) post the document.
    Enter the Results: PASS and enter the Document
    If you observing any error like for eg G/l account is not maintained
    Result : FAIL
    do the correct action and test  again
    G.Ganesh Kumar

  • Asset accounting Test Script

    Hi
    iam doing first implementation Project. any one can provide asset account Test Scrips .
    what is test scrip. plse provide sample test script . my client wants Fuctional test script.
    plse provide
    Thanks

    Hi
    [Maybe you should have tried this|http://www.lmgtfy.com/?q=sapfunctionaltest+scripts]
    We are otherwise not allowed to pass links for documents here.
    Rgds
    Zub

Maybe you are looking for

  • How to set a default value as current month in already created variable of 0fiscper

    Hi Guys, In my report currently we are using a variable for 0fiscper which is mandatory and selection option. Now there is a requirement to set current month as default value in that variable. Please let me know how can I do that. Thanks. Dolly

  • How to turn off NVIDIA when on battery?

    Hi Folks, I have the Optimus thing, and the NVIDIA chip is staying active when I'm on battery (as verified by NVGPUStateViewer64). Is there any way to have it automatically turn off when I'm on battery, or are apps that were attached to NVIDIA while

  • Error: Unable to load the GSS-API Shared Library

    Hi all, I'm trying to install a working copy of SAP on a Debian Etch host. I've tried all versions available here: ftp://ftp.sap.com/pub/sapgui/java/  (710 r[2-6])  The jar installer completes successfully without error, but when I attempt to launch

  • I have an idea (new feature) for Firefox

    Is it possibe to make more than 9 visual bookmarks? It'll be very great!

  • Siri Gym/School Location Fail

    I believe there is a little goof in the Siri design for locations. You are able to get directions and set reminders to locations associated with your contact on iCloud, so you can add your Home and Work address (correctly labeled) and you're good to